Code Review 7030649: URL.equals() fails to compare jar urls
Chris Hegarty
chris.hegarty at oracle.com
Thu Apr 14 08:56:45 PDT 2011
Alan, Michael,
This is an old issue. JAR URLs may not compare equal when their
enclosing URL's are. The reason is that URLStreamHandle.equals(URL,URL)
and sameFile(URL,URL) doesn't know about the composite URL syntax used
by JAR URLs. To resolve this we should overridden samefile in
sun.net.www.protocol.jar.Handler. Ditto for hashCode.
http://cr.openjdk.java.net/~chegar/7030649/webrev.00/webrev/
-Chris.
More information about the net-dev
mailing list