This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sat, Dec 20, 2003 at 10:28:19AM +0100, Guilhem Lavaux wrote:
Oh, yeah. Apparently someone merged it into gnu/testlet/java/net/newURL.java.
After applying all your patches you sent I have rerun Mauve I get still one failure (three others are fixed):
FAIL: gnu.testlet.java.net.URL.newURL: http://www.kaffe.org + foo/bar = http://www.kaffe.org/foo/bar (number 1)
Do you have a little patch at hand to fix this too ?
--- /home/guilhem/ext2/PROJECTS/classpath/java/net/URLStreamHandler.java 2003-11-27 19:59:02.000000000 +0100 +++ java/net/URLStreamHandler.java 2003-12-20 12:51:13.000000000 +0100 @@ -180,12 +180,20 @@ else if (host == null) host = ""; - if (file == null || file.length() == 0 - || (start < end && spec.charAt(start) == '/')) + if (file == null || file.length() == 0) { // No file context available; just spec for file. - // Or this is an absolute path name; ignore any file context. - file = spec.substring(start, end); + // First check that spec is absolute. If it's not the case + // prepend a '/'. + file = spec.substring (start, end); + ref = null; + if (start < end && spec.charAt(start) != '/') + file = "/" + file; + } + else if (start < end && spec.charAt(start) == '/') + { + // This is an absolute path name; ignore any file context. + file = spec.substring (start, end); ref = null; } else if (start < end)
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |