This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/34369] java.net.URI.relativize(URI) method returns incorrect results
- From: "lnx1138 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2007 22:15:29 -0000
- Subject: [Bug java/34369] java.net.URI.relativize(URI) method returns incorrect results
- References: <bug-34369-15482@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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