classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: fix PR 25141


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: fix PR 25141
Date: 29 Nov 2005 11:11:18 -0700

I'm checking this in on the trunk.

This fixes PR 25141.  We should pass in the context's
URLStreamHandler if none is specified.  I checked in a mauve test
case derived from the PR.

Tom

2005-11-29  Tom Tromey  <address@hidden>

        PR classpath/25141:
        * java/net/URL.java (URL): Use context's stream handler.

Index: java/net/URL.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/URL.java,v
retrieving revision 1.49
diff -u -r1.49 URL.java
--- java/net/URL.java   17 Nov 2005 10:58:47 -0000      1.49
+++ java/net/URL.java   29 Nov 2005 18:13:32 -0000
@@ -342,7 +342,7 @@
    */
   public URL(URL context, String spec) throws MalformedURLException
   {
-    this(context, spec, (URLStreamHandler) null);
+    this(context, spec, context.ph);
   }
 
   /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]