diff options
Diffstat (limited to 'libjava/classpath/java/net/URLClassLoader.java')
-rw-r--r-- | libjava/classpath/java/net/URLClassLoader.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libjava/classpath/java/net/URLClassLoader.java b/libjava/classpath/java/net/URLClassLoader.java index 6df2818c5c9..346f51c5dfa 100644 --- a/libjava/classpath/java/net/URLClassLoader.java +++ b/libjava/classpath/java/net/URLClassLoader.java @@ -262,10 +262,9 @@ public class URLClassLoader extends SecureClassLoader super(parent); this.securityContext = null; this.factory = factory; - addURLs(urls); - - // If this factory is still not in factoryCache, add it. + // If this factory is not yet in factoryCache, add it. factoryCache.add(factory); + addURLs(urls); } // Methods @@ -624,10 +623,7 @@ public class URLClassLoader extends SecureClassLoader } catch (IOException ioe) { - ClassNotFoundException cnfe; - cnfe = new ClassNotFoundException(className + " not found in " + this); - cnfe.initCause(ioe); - throw cnfe; + throw new ClassNotFoundException(className + " not found in " + this, ioe); } } |