This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve 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] |
Hi, Roman found a bug in classpath URLStreamHandler handling while writing/testing jgecko. This adds a test for this case. 2006-12-07 Mark Wielaard <mark@klomp.org> * gnu/testlet/java/net/URL/URLTest.java: Add test for jar base with full http spec. Committed, Mark Index: gnu/testlet/java/net/URL/URLTest.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/URL/URLTest.java,v retrieving revision 1.19 diff -u -r1.19 URLTest.java --- gnu/testlet/java/net/URL/URLTest.java 27 Jul 2006 15:54:57 -0000 1.19 +++ gnu/testlet/java/net/URL/URLTest.java 7 Dec 2006 21:41:54 -0000 @@ -340,6 +340,17 @@ harness.check(false); harness.debug(_); } + + harness.checkPoint("jar base with full http spec"); + try { + URL base = new URL("jar:file:///test.jar!/foo/bar.txt"); + URL other = new URL(base, "http://planet.classpath.org/"); + harness.check(other.toString(), + "http://planet.classpath.org/"); + } catch (IOException _) { + harness.check(false); + harness.debug(_); + } }
Attachment:
signature.asc
Description: This is a digitally signed message part
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |