--- old/src/java.base/share/classes/jdk/internal/module/SystemModuleFinders.java 2018-03-07 17:31:03.000000000 -0800 +++ new/src/java.base/share/classes/jdk/internal/module/SystemModuleFinders.java 2018-03-07 17:31:03.000000000 -0800 @@ -38,7 +38,6 @@ import java.nio.ByteBuffer; 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.ArrayDeque; @@ -185,7 +184,7 @@ // probe to see if this is an images build String home = System.getProperty("java.home"); - Path modules = Paths.get(home, "lib", "modules"); + Path modules = Path.get(home, "lib", "modules"); if (Files.isRegularFile(modules)) { if (USE_FAST_PATH) { SystemModules systemModules = allSystemModules(); @@ -205,7 +204,7 @@ } // exploded build (do not cache module finder) - Path dir = Paths.get(home, "modules"); + Path dir = Path.get(home, "modules"); if (!Files.isDirectory(dir)) throw new InternalError("Unable to detect the run-time image"); ModuleFinder f = ModulePath.of(ModuleBootstrap.patcher(), dir);