Re: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.

2011-11-28 Thread Alan Bateman

On 28/11/2011 06:52, Charles Lee wrote:

Hi guys,

When we call InetAddress.getLocalHost(), we usually return the first 
entry of inet address array. The array keeps the same order as 
getaddrinfo gets (duplication has been removed).


In Windows 2008 sp2 or later version Windows OS with multiple NICs, 
getaddrinfo() sorts the Addresses and linklocal/APIPA address appears 
first now. So user will get a APIPA address even if a more useful 
address is available.
I'm curious about this behavior. Are you saying that the host's name 
resolves to addresses on all interfaces? Also I thought that the default 
was to sort the addresses so that IPv4 addresses appear before IPv6 
addresses (unless java.net.preferIPv6Addresses is set to true).


-Alan


hg: jdk8/tl/jdk: 7115744: Do not call File::deleteOnExit in security tests

2011-11-28 Thread weijun . wang
Changeset: 022540b11147
Author:weijun
Date:  2011-11-28 18:16 +0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/022540b11147

7115744: Do not call File::deleteOnExit in security tests
Reviewed-by: xuelei

! test/sun/security/krb5/auto/CrossRealm.java
! test/sun/security/krb5/auto/HttpNegotiateServer.java
! test/sun/security/krb5/auto/KDC.java
! test/sun/security/krb5/auto/OkAsDelegateXRealm.java
! test/sun/security/krb5/auto/OneKDC.java
! test/sun/security/krb5/auto/SSL.java
! test/sun/security/krb5/auto/W83.java
! test/sun/security/ssl/javax/net/ssl/NewAPIs/SSLEngineResult/Deserialize.java



hg: jdk8/tl/jdk: 7115524: sun.security.provider.certpath.ssl.SSLServerCertStore no longer works

2011-11-28 Thread xuelei . fan
Changeset: d1928ae4e0a2
Author:xuelei
Date:  2011-11-28 02:35 -0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d1928ae4e0a2

7115524: sun.security.provider.certpath.ssl.SSLServerCertStore no longer works
Reviewed-by: weijun

! src/share/classes/sun/security/provider/certpath/ssl/SSLServerCertStore.java



hg: jdk8/tl/jdk: 7115070: (fs) lookupPrincipalByName/lookupPrincipalByGroupName should treat ESRCH as not found

2011-11-28 Thread neil . richards
Changeset: 955aae8c1106
Author:ngmr
Date:  2011-11-24 11:34 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/955aae8c1106

7115070: (fs) lookupPrincipalByName/lookupPrincipalByGroupName should treat 
ESRCH as not found
Reviewed-by: alanb
Contributed-by: Jonathan Lu 

! src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c



hg: jdk8/tl/jdk: 7094995: Trailing daemon thread causes continuous GC in agentvm mode

2011-11-28 Thread neil . richards
Changeset: 6fbd69f8e3ab
Author:ngmr
Date:  2011-11-18 09:03 +
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6fbd69f8e3ab

7094995: Trailing daemon thread causes continuous GC in agentvm mode
Summary: Shutdown GcInducingThread once test (successfully) finishes
Reviewed-by: alanb, chegar, dholmes, darcy
Contributed-by: Neil Richards 

! test/java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java



hg: jdk8/tl/langtools: 2 new changesets

2011-11-28 Thread maurizio . cimadamore
Changeset: 9448fe783fd2
Author:mcimadamore
Date:  2011-11-28 15:56 +
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/9448fe783fd2

7115050: Add parser support for lambda expressions
Summary: Add support for parsing lambda expressions to JavacParser
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/code/Source.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/parser/Lexer.java
! src/share/classes/com/sun/tools/javac/parser/Scanner.java
! src/share/classes/com/sun/tools/javac/parser/Tokens.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! test/tools/javac/diags/examples/CatchWithoutTry.java
+ test/tools/javac/diags/examples/LambdaNotSupported.java
+ test/tools/javac/diags/examples/NotAStatement.java
! test/tools/javac/generics/rare/6665356/T6665356.out
+ test/tools/javac/lambda/LambdaParserTest.java

Changeset: 3343b22e2761
Author:mcimadamore
Date:  2011-11-28 16:05 +
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/3343b22e2761

7115052: Add parser support for method references
Summary: Add support for parsing method references to JavacParser
Reviewed-by: jjg

! src/share/classes/com/sun/tools/javac/code/Source.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/parser/Tokens.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
! test/tools/javac/diags/examples/IllegalChar.java
+ test/tools/javac/diags/examples/MethodReferencesNotSupported.java
+ test/tools/javac/lambda/MethodReferenceParserTest.java
! test/tools/javac/quid/T6999438.out



Re: InetAddress.getLocalHost() returns APIPA/link-local address in a Windows 2008 SP2 or later version Windows OS with multiple-NICs.

2011-11-28 Thread Charles Lee

On 11/28/2011 05:41 PM, Alan Bateman wrote:

On 28/11/2011 06:52, Charles Lee wrote:

Hi guys,

When we call InetAddress.getLocalHost(), we usually return the first 
entry of inet address array. The array keeps the same order as 
getaddrinfo gets (duplication has been removed).


In Windows 2008 sp2 or later version Windows OS with multiple NICs, 
getaddrinfo() sorts the Addresses and linklocal/APIPA address appears 
first now. So user will get a APIPA address even if a more useful 
address is available.
I'm curious about this behavior. Are you saying that the host's name 
resolves to addresses on all interfaces?

Yes.
Also I thought that the default was to sort the addresses so that IPv4 
addresses appear before IPv6 addresses (unless 
java.net.preferIPv6Addresses is set to true).


-Alan
You are right. The ipv4 will appear in front of ipv6, but the order of 
ipv4 or ipv6 (separately) will not be sorted.



--
Yours Charles



hg: jdk8/tl/jdk: 7109092: Wrong computation results with double at armsflt

2011-11-28 Thread david . holmes
Changeset: cf47846165f4
Author:dholmes
Date:  2011-11-29 00:26 -0500
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cf47846165f4

7109092: Wrong computation results with double at armsflt
Summary: need to link to custom soft-float library with required FP accuracy
Reviewed-by: alanb, ohair

! make/common/Defs-embedded.gmk