< prev index next >

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

Print this page
8215048: Some classloader typos
Reviewed-by: alanb

*** 803,813 **** } private JarFile getJarFile(URL url) throws IOException { // Optimize case where url refers to a local jar file if (isOptimizable(url)) { ! FileURLMapper p = new FileURLMapper (url); if (!p.exists()) { throw new FileNotFoundException(p.getPath()); } return checkJar(new JarFile(new File(p.getPath()), true, ZipFile.OPEN_READ, JarFile.runtimeVersion())); --- 803,813 ---- } private JarFile getJarFile(URL url) throws IOException { // Optimize case where url refers to a local jar file if (isOptimizable(url)) { ! FileURLMapper p = new FileURLMapper(url); if (!p.exists()) { throw new FileNotFoundException(p.getPath()); } return checkJar(new JarFile(new File(p.getPath()), true, ZipFile.OPEN_READ, JarFile.runtimeVersion()));
< prev index next >