jdk/src/share/classes/sun/misc/URLClassPath.java
changeset 10355 a976ff46116b
parent 9823 2bc6b0d4490e
child 11131 27747ee5a62a
--- a/jdk/src/share/classes/sun/misc/URLClassPath.java	Mon Aug 22 16:05:38 2011 +0100
+++ b/jdk/src/share/classes/sun/misc/URLClassPath.java	Mon Aug 22 12:16:12 2011 -0700
@@ -717,7 +717,7 @@
             try {
                 ensureOpen();
             } catch (IOException e) {
-                throw (InternalError) new InternalError().initCause(e);
+                throw new InternalError(e);
             }
             return index;
         }
@@ -812,7 +812,7 @@
             try {
                 ensureOpen();
             } catch (IOException e) {
-                throw (InternalError) new InternalError().initCause(e);
+                throw new InternalError(e);
             }
             final JarEntry entry = jar.getJarEntry(name);
             if (entry != null)
@@ -900,7 +900,7 @@
                         try {
                             newLoader.ensureOpen();
                         } catch (IOException e) {
-                            throw (InternalError) new InternalError().initCause(e);
+                            throw new InternalError(e);
                         }
                         final JarEntry entry = newLoader.jar.getJarEntry(name);
                         if (entry != null) {