--- a/jdk/test/tools/jlink/JLink2Test.java Thu Apr 06 17:01:03 2017 +0000
+++ b/jdk/test/tools/jlink/JLink2Test.java Fri Apr 07 08:05:54 2017 +0000
@@ -39,7 +39,6 @@
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
-import java.lang.reflect.Layer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
@@ -88,7 +87,7 @@
private static void testOptions() throws Exception {
List<Plugin> builtInPlugins = new ArrayList<>();
- builtInPlugins.addAll(PluginRepository.getPlugins(Layer.boot()));
+ builtInPlugins.addAll(PluginRepository.getPlugins(ModuleLayer.boot()));
if(builtInPlugins.isEmpty()) {
throw new Exception("No builtin plugins");
}