< prev index next >

test/tools/jdeps/APIDeps.java

Print this page

        

@@ -58,10 +58,13 @@
         CompilerUtils.cleanDir(dest);
         Files.createDirectories(dest);
         Path testsrc = Paths.get(System.getProperty("test.src"));
         List<String> options = new ArrayList<>();
 
+        // jdk.jdeps is a service provider module so needs to be explicitly included
+        options.add("--add-modules=jdk.jdeps");
+
         // add --add-exports
         String testModules = System.getProperty("test.modules", "");
         List<String> addExports = new ArrayList<>();
         for (String s : testModules.split("\\s+")) {
             if (s.isEmpty()) continue;
< prev index next >