[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: URL must accept null context
From: |
Guilhem Lavaux |
Subject: |
[cp-patches] FYI: URL must accept null context |
Date: |
Sun, 04 Dec 2005 21:49:59 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050322) |
Hi,
With some last patch URLs was not accepting anymore null contexts. I've
inserted a new mauve test for that in URLTest.
ChangeLog entry:
2005-12-04 Guilhem Lavaux <address@hidden>
* java/net/URL.java (URL): Check whether context is null before
accessing ph.
Index: java/net/URL.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/URL.java,v
retrieving revision 1.50
diff -u -r1.50 URL.java
--- java/net/URL.java 29 Nov 2005 18:17:46 -0000 1.50
+++ java/net/URL.java 4 Dec 2005 20:49:43 -0000
@@ -342,7 +342,7 @@
*/
public URL(URL context, String spec) throws MalformedURLException
{
- this(context, spec, context.ph);
+ this(context, spec, (context == null) ? (URLStreamHandler)null :
context.ph);
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: URL must accept null context,
Guilhem Lavaux <=