src/java.base/share/classes/jdk/internal/loader/URLClassPath.java

Print this page
rev 13958 : 8152190: Move sun.misc.JarIndex and InvalidJarIndexException to an internal package
Reviewed-by:

*** 63,74 **** import java.util.jar.Attributes.Name; import java.util.zip.ZipFile; import jdk.internal.misc.JavaUtilZipFileAccess; import jdk.internal.misc.SharedSecrets; ! import sun.misc.InvalidJarIndexException; ! import sun.misc.JarIndex; import sun.net.util.URLUtil; import sun.net.www.ParseUtil; /** * This class is used to maintain a search path of URLs for loading classes --- 63,74 ---- import java.util.jar.Attributes.Name; import java.util.zip.ZipFile; import jdk.internal.misc.JavaUtilZipFileAccess; import jdk.internal.misc.SharedSecrets; ! import jdk.internal.util.jar.InvalidJarIndexError; ! import jdk.internal.util.jar.JarIndex; import sun.net.util.URLUtil; import sun.net.www.ParseUtil; /** * This class is used to maintain a search path of URLs for loading classes
*** 900,910 **** * same package name as the lookedup resource is * present in the new jar */ if (!newLoader.validIndex(name)) { /* the mapping is wrong */ ! throw new InvalidJarIndexException("Invalid index"); } } /* If newLoader is the current loader or if it is a * loader that has already been searched or if the new --- 900,910 ---- * same package name as the lookedup resource is * present in the new jar */ if (!newLoader.validIndex(name)) { /* the mapping is wrong */ ! throw new InvalidJarIndexError("Invalid index"); } } /* If newLoader is the current loader or if it is a * loader that has already been searched or if the new