< prev index next >

jdk/test/tools/lib/tests/Helper.java

Print this page

        

@@ -162,11 +162,11 @@
                 .distinct()
                 .collect(Collectors.toList());
         Path srcMod = src.resolve(moduleName);
         JImageGenerator.generateModuleInfo(srcMod, packages, dependencies);
         Path destination = classes.resolve(moduleName);
-        if (!JImageGenerator.compile(srcMod, destination, "-modulepath", modulePath, "-g")) {
+        if (!JImageGenerator.compile(srcMod, destination, "--module-path", modulePath, "-g")) {
             throw new AssertionError("Compilation failure");
         }
         return destination;
     }
 
< prev index next >