[kaffe] CVS kaffe (kaz): libraries/javalib/java/net/URI.java

Kaffe CVS Kaffe Mailing List <kaffe@kaffe.org>
Wed Nov 26 14:25:02 2003


PatchSet 4171 
Date: 2003/11/26 22:22:54
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
        * libraries/javalib/java/net/URI.java
        (toURL): Implemented.

Members: 
	ChangeLog:1.1763->1.1764 
	libraries/javalib/java/net/URI.java:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1763 kaffe/ChangeLog:1.1764
--- kaffe/ChangeLog:1.1763	Sun Nov 23 20:41:03 2003
+++ kaffe/ChangeLog	Wed Nov 26 22:22:54 2003
@@ -1,3 +1,8 @@
+2003-11-17  Ito Kazumitsu  <kaz@maczuka.gcd.org>
+
+	* libraries/javalib/java/net/URI.java
+	(toURL): Implemented.
+
 2003-11-23  Dalibor Topic <robilad@kaffe.org>
 
 	Partially re-synced with GNU Classpath. Detailed ChangeLog follows.
Index: kaffe/libraries/javalib/java/net/URI.java
diff -u kaffe/libraries/javalib/java/net/URI.java:1.3 kaffe/libraries/javalib/java/net/URI.java:1.4
--- kaffe/libraries/javalib/java/net/URI.java:1.3	Wed May  7 06:13:08 2003
+++ kaffe/libraries/javalib/java/net/URI.java	Wed Nov 26 22:22:56 2003
@@ -456,7 +456,10 @@
   public URL toURL ()
     throws IllegalArgumentException, MalformedURLException
   {
-    return null;
+    if (isAbsolute()) {
+        return new URL(this.toString());
+    }
+    throw new IllegalArgumentException("not absolute");
   }
 
   /**