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
This commit is contained in:
parent
85341ddd99
commit
e46b54a2b9
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2002-09-16 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* java/lang/AssertionError.java:
|
* java/lang/AssertionError.java:
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class URLClassLoader extends SecureClassLoader
|
||||||
|
|
||||||
for (int i = 0; i < urls.length; i++)
|
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]);
|
URL u = jarFileize(urls[i]);
|
||||||
|
|
||||||
path.addElement (u);
|
path.addElement (u);
|
||||||
|
@ -266,7 +266,7 @@ public class URLClassLoader extends SecureClassLoader
|
||||||
int i = u.indexOf ('!');
|
int i = u.indexOf ('!');
|
||||||
if (i >= 0)
|
if (i >= 0)
|
||||||
u = u.substring (0, i);
|
u = u.substring (0, i);
|
||||||
url = new URL("jar", "", u);
|
url = new URL(u);
|
||||||
|
|
||||||
source = new CodeSource(url, certificates);
|
source = new CodeSource(url, certificates);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue