diff options
author | Tom Tromey <tromey@redhat.com> | 2002-09-16 21:40:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-09-16 21:40:40 +0000 |
commit | e46b54a2b95ef8afa5ba8fffc39e48eee4f8aa86 (patch) | |
tree | bd7fd7821a50a188d349b53746db0de5fca06d6a | |
parent | 85341ddd99c46d8fcc85c1cebc6902310c4f02a7 (diff) | |
download | gcc-e46b54a2b95ef8afa5ba8fffc39e48eee4f8aa86.zip gcc-e46b54a2b95ef8afa5ba8fffc39e48eee4f8aa86.tar.gz gcc-e46b54a2b95ef8afa5ba8fffc39e48eee4f8aa86.tar.bz2 |
URLClassLoader.java (findClass): Code source for a class from a jar is not necessarily a jar: URL.
* java/net/URLClassLoader.java (findClass): Code source for a
class from a jar is not necessarily a jar: URL.
From-SVN: r57214
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/net/URLClassLoader.java | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0217183..346323e 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-09-16 Tom Tromey <tromey@redhat.com> + + * java/net/URLClassLoader.java (findClass): Code source for a + class from a jar is not necessarily a jar: URL. + 2002-09-16 Michael Koch <konqueror@gmx.de> * java/lang/AssertionError.java: diff --git a/libjava/java/net/URLClassLoader.java b/libjava/java/net/URLClassLoader.java index 0b66af6..7e59c66 100644 --- a/libjava/java/net/URLClassLoader.java +++ b/libjava/java/net/URLClassLoader.java @@ -119,7 +119,7 @@ public class URLClassLoader extends SecureClassLoader for (int i = 0; i < urls.length; i++) { - // Convert a Jar File URL into a Jar URL is possible. + // Convert a Jar File URL into a Jar URL if possible. URL u = jarFileize(urls[i]); path.addElement (u); @@ -266,7 +266,7 @@ public class URLClassLoader extends SecureClassLoader int i = u.indexOf ('!'); if (i >= 0) u = u.substring (0, i); - url = new URL("jar", "", u); + url = new URL(u); source = new CodeSource(url, certificates); } |