diff -r 2c33418a6d57 -r 83b611b88ac8 jdk/test/java/lang/ClassLoader/getResource/modules/Main.java --- a/jdk/test/java/lang/ClassLoader/getResource/modules/Main.java Thu Apr 06 17:01:03 2017 +0000 +++ b/jdk/test/java/lang/ClassLoader/getResource/modules/Main.java Fri Apr 07 08:05:54 2017 +0000 @@ -24,7 +24,6 @@ import java.io.InputStream; import java.lang.module.Configuration; import java.lang.module.ResolvedModule; -import java.lang.reflect.Layer; import java.io.IOException; import java.net.URL; import java.nio.file.Files; @@ -309,7 +308,7 @@ * Returns the directory for the given module (by name). */ static Path directoryFor(String mn) { - Configuration cf = Layer.boot().configuration(); + Configuration cf = ModuleLayer.boot().configuration(); ResolvedModule resolvedModule = cf.findModule(mn).orElse(null); if (resolvedModule == null) throw new RuntimeException("not found: " + mn);