--- old/src/java.base/share/classes/jdk/internal/loader/BootLoader.java 2018-03-07 17:31:00.000000000 -0800 +++ new/src/java.base/share/classes/jdk/internal/loader/BootLoader.java 2018-03-07 17:30:59.000000000 -0800 @@ -32,7 +32,6 @@ import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; -import java.nio.file.Paths; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Arrays; @@ -243,8 +242,8 @@ mn = location.substring(5, location.length()); } else if (location.startsWith("file:/")) { // named module in exploded image - Path path = Paths.get(URI.create(location)); - Path modulesDir = Paths.get(JAVA_HOME, "modules"); + Path path = Path.get(URI.create(location)); + Path modulesDir = Path.get(JAVA_HOME, "modules"); if (path.startsWith(modulesDir)) { mn = path.getFileName().toString(); } @@ -267,7 +266,7 @@ private static URL toFileURL(String location) { return AccessController.doPrivileged(new PrivilegedAction<>() { public URL run() { - Path path = Paths.get(location); + Path path = Path.get(location); if (Files.isRegularFile(path)) { try { return path.toUri().toURL(); @@ -285,7 +284,7 @@ private static Manifest getManifest(String location) { return AccessController.doPrivileged(new PrivilegedAction<>() { public Manifest run() { - Path jar = Paths.get(location); + Path jar = Path.get(location); try (InputStream in = Files.newInputStream(jar); JarInputStream jis = new JarInputStream(in, false)) { return jis.getManifest();