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

2011-03-01 Thread Sean Chou
Hi, If there's no different opinions or objection, can someone raise a bug on the Oracle bug system for me please? 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 eff

URLConnection.guessContentTypeFromStream() does not support UTF8 and UTF32 with BOM

2011-03-01 Thread Charles Lee
Hi guys, With test case[1] below, you can see guessContent does not support UTF8/32 BOM. This problem could be solved with the patch[2]. The patch is straight forward: 1. read more bytes since UTF32 2. add xml type support in utf8 and utf32 BOM. [1] test case: public static void main(String[

hg: jdk7/tl/jdk: 7022624: use try-with-resources in java.io tests

2011-03-01 Thread stuart . marks
Changeset: 98d2d57d9e73 Author:smarks Date: 2011-03-01 15:05 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/98d2d57d9e73 7022624: use try-with-resources in java.io tests Reviewed-by: alanb ! test/java/io/File/SetLastModified.java ! test/java/io/FileOutputStream/AtomicAppend.

hg: jdk7/tl/langtools: 7021183: 269: assertion failure getting enclosing element of an undefined name

2011-03-01 Thread jonathan . gibbons
Changeset: 938dda0bec17 Author:jjg Date: 2011-03-01 12:00 -0800 URL: http://hg.openjdk.java.net/jdk7/tl/langtools/rev/938dda0bec17 7021183: 269: assertion failure getting enclosing element of an undefined name Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/code/Sy

Re: URI ignores invalid ipv6 address while parsing authority

2011-03-01 Thread Chris Hegarty
On 03/ 1/11 09:58 AM, Jing LV wrote: > Hello, > > According to authority component RFC2396, if host name is a domain name > there should be no "[" and "]". However if we put a hostname like > "[www.abc.com]" while creating a URI, it silently accept, no error is > reported. I suppose this is a bug.

hg: jdk7/tl/jdk: 7023034: Files.createTempDirectory((Path)null, "temp") does not throw NPE

2011-03-01 Thread alan . bateman
Changeset: b7e763a573a4 Author:alanb Date: 2011-03-01 12:03 + URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/b7e763a573a4 7023034: Files.createTempDirectory((Path)null, "temp") does not throw NPE Reviewed-by: forax ! src/share/classes/java/nio/file/Files.java ! test/java/nio/f

Re: Does OpenJDK support bitmap image with JarURLConnection?

2011-03-01 Thread Chris Hegarty
Interesting... I would have guessed bmp would be supported too. It doesn't appear to be specific to JarURLConnection, raw file urls also exhibit the same behavior. Wow, last time content-types.properties was meaningfully changed was 1999, when PNG was added! I don't have any specific objection to

URI ignores invalid ipv6 address while parsing authority

2011-03-01 Thread Jing LV
Hello, According to authority component RFC2396, if host name is a domain name there should be no "[" and "]". However if we put a hostname like "[www.abc.com]" while creating a URI, it silently accept, no error is reported. I suppose this is a bug. A testcase can be found below: try {

Does OpenJDK support bitmap image with JarURLConnection?

2011-03-01 Thread Jing LV
Hello, It is a little odd to me that I find OpenJDK JarURLConnection does not support bmp file. The testcase below: public static void main(String[] args) throws MalformedURLException, IOException { JarURLConnection conn = (JarURLConnection) new URL("jar:file:/somedir/somejar.jar!/someb

Re: SocketPermission's implies() interesting behavior

2011-03-01 Thread Chris Hegarty
Michael, Can you please take a look at this change, CR 7021280: "SocketPermission trustProxy should accept wildcards". This patch came from Charles (cc'ed), and I agree with the changes. Can you please take a look and give your feedback. http://cr.openjdk.java.net/~chegar/7021280/webrev.00/

hg: jdk7/tl/jdk: 7020531: test: java/security/cert/CertificateFactory/openssl/OpenSSLCert.java file not closed after run

2011-03-01 Thread weijun . wang
Changeset: f8bf888edf20 Author:weijun Date: 2011-03-01 16:22 +0800 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/f8bf888edf20 7020531: test: java/security/cert/CertificateFactory/openssl/OpenSSLCert.java file not closed after run Reviewed-by: alanb, smarks ! test/ProblemList.txt