Re: HttpCookie.domainMatches("hostname.local", "hostname") return false

2011-08-04 Thread Sean Chou
Hi all,

   I checked with java8, this problem still exists; and I checked the patch,
it is still working.
The bug was filed with id 7023713 for java7, and the patch is here. So,
would anyone like to
take a look at it again? Thanks.

2011/2/22 Sean Chou 

> Hi,
>I find that HttpCookie.domainMatches("hostname.local", "hostname")
> returns false, which may be a bug.
>According to spec, the effective host name of "hostname" is
> "hostname.local", which is string
> exactly the same with the first parameter. Thus the method should return
> true for this invocation.
>
>I attached the simple testcase here:
> // Testcase
> import java.net.HttpCookie;
>
> public class DomainMatchTest{
>
>public static void main(String args[]){
>   // "true" should be printed, but get "false".
>   System.out.println(HttpCookie.domainMatches("hostname.local",
> "hostname"));
>}
>
> }
> // End of testcase
>
> Any comments?
>
> --
> Best Regards,
> Sean Chou
>
>


-- 
Best Regards,
Sean Chou


localdomainmatch.patch
Description: Binary data


hg: jdk8/tl/jdk: 7061379: [Kerberos] Cross-realm authentication fails, due to nameType problem

2011-08-04 Thread weijun . wang
Changeset: e68db408d08c
Author:weijun
Date:  2011-08-04 18:18 +0800
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e68db408d08c

7061379: [Kerberos] Cross-realm authentication fails, due to nameType problem
Reviewed-by: valeriep

! src/share/classes/sun/security/krb5/PrincipalName.java
! test/sun/security/krb5/auto/KDC.java
+ test/sun/security/krb5/auto/PrincipalNameEquals.java



hg: jdk8/tl/jdk: 7073296: Executable.equalParamTypes() incorrectly returns true when the number of params differs.

2011-08-04 Thread mike . duigou
Changeset: 56e89034
Author:mduigou
Date:  2011-08-04 08:53 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/56e89034

7073296: Executable.equalParamTypes() incorrectly returns true when the number 
of params differs.
Reviewed-by: alanb, darcy

! src/share/classes/java/lang/Class.java
! src/share/classes/java/lang/reflect/Executable.java
+ test/java/lang/reflect/Constructor/Equals.java



hg: jdk8/tl/langtools: 7071246: Enclosing string literal in parenthesis in switch-case crashes javac

2011-08-04 Thread joe . darcy
Changeset: 64b9b7ae3366
Author:darcy
Date:  2011-08-04 11:15 -0700
URL:   http://hg.openjdk.java.net/jdk8/tl/langtools/rev/64b9b7ae3366

7071246: Enclosing string literal in parenthesis in switch-case crashes javac
Reviewed-by: mcimadamore

! src/share/classes/com/sun/tools/javac/comp/Lower.java
! test/tools/javac/StringsInSwitch/StringSwitches.java