[Bug java/34369] java.net.URI.relativize(URI) method returns incorrect results
lnx1138 at us dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 6 22:15:00 GMT 2007
------- Comment #2 from lnx1138 at us dot ibm dot com 2007-12-06 22:15 -------
Created an attachment (id=14705)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14705&action=view)
gcc-libjava-uri-relativize.patch to fix java.net.URI.relativize(URI) method
This patch corrects two issues found in URI.relativize() method in
libjava/classpath/java/net/URI.java. It applies from gcc 4.1.2 through latest
trunk:
* does stricter check for a path match while still using String.startsWith()
* excludes leading '/' if necessary for relative path fragment being returned
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34369
More information about the Java-prs
mailing list