< prev index next >
test/runtime/modules/PatchModule/PatchModuleDupModule.java
Print this page
@@ -21,28 +21,27 @@
* questions.
*/
/*
* @test
- * @summary Module system initialization exception results if a module is specificed twice to Xpatch.
+ * @summary Module system initialization exception results if a module is specificed twice to --patch-module.
* @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
import jdk.test.lib.*;
-public class XpatchDupModule {
+public class PatchModuleDupModule {
// The module system initialization should generate an ExceptionInInitializerError
- // if -Xpatch is specified with the same module more than once.
+ // if --patch-module is specified with the same module more than once.
public static void main(String args[]) throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
- "-Xpatch:module1=module1_dir",
- "-Xpatch:module1=module1_dir",
+ "--patch-module=module1=module1_dir",
+ "--patch-module=module1=module1_dir",
"-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("java.lang.ExceptionInInitializerError");
output.shouldHaveExitValue(1);
}
}
-
< prev index next >