Hi! This patch does the following: - fixes a bug in 2 methods of Inet6Address; - fixes a bug (unquotes the paths) in URLClassLoader (same as in http://article.gmane.org/gmane.comp.java.classpath.patches/12985/); - makes MalformedURLException message (in URL class) more end-user-friendly (e.g., if someone specifies "www.xyz.com" instead of "http://www.xyz.com" (for new URL(url)) then the thrown message would be "No protocol specified: www.xyz.com" instead of "Absolute URL required with null context: www.xyz.com").
ChangeLog entries:
* java/net/Inet6Address.java:
(isLinkLocalAddress()): Fix a bug (cast integer const to byte).
(isSiteLocalAddress()): Likewise.
* java/net/URL.java:
(URL(URL, String, URLStreamHandler, boolean)): Replace
"Absolute URL required with null context" exception message with
a more user-friendly "No protocol specified" (matches that in the RI).
* java/net/URLClassLoader.java:
(addURLImpl(URL)): Do "unquote" of the URL file path.
(getPermissions(CodeSource)): Likewise.
(getPermissions(CodeSource)): Replace '/' in the URL file path to
a platform-dependent one.
Regards.
classpath-ivmai-21.diff
Description: Binary data
