public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: mauve-patches <mauve-patches@sources.redhat.com>
Subject: New URLTest
Date: Thu, 07 Dec 2006 21:44:00 -0000	[thread overview]
Message-ID: <1165527867.3009.36.camel@dijkstra.wildebeest.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2006-12-07 21:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1165527867.3009.36.camel@dijkstra.wildebeest.org \
    --to=mark@klomp.org \
    --cc=mauve-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).