< prev index next >

test/runtime/BadObjectClass/BootstrapRedefine.java

Print this page

        

*** 46,56 **** ClassFileInstaller.writeClassToDisk("java/lang/Object", InMemoryJavaCompiler.compile("java.lang.Object", source, "-Xmodule:java.base"), "mods/java.base"); ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xpatch:java.base=mods/java.base", "-version"); new OutputAnalyzer(pb.start()) .shouldContain("Incompatible definition of java.lang.Object") .shouldHaveExitValue(1); } } --- 46,56 ---- ClassFileInstaller.writeClassToDisk("java/lang/Object", InMemoryJavaCompiler.compile("java.lang.Object", source, "-Xmodule:java.base"), "mods/java.base"); ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("--patch-module=java.base=mods/java.base", "-version"); new OutputAnalyzer(pb.start()) .shouldContain("Incompatible definition of java.lang.Object") .shouldHaveExitValue(1); } }
< prev index next >