8177741: Fix hotspot tests to use --patch-module instead of -Xmodule

Change InMemoryJavaCompiler.compile() to accept --patch-module instead of -Xmodule, and then change appropriate tests.

Reviewed-by: coleenp, gtriantafill
This commit is contained in:
Harold Seigel 2017-08-10 11:12:13 -04:00
parent 7009b948bb
commit e2b0679319
9 changed files with 20 additions and 20 deletions

View file

@ -62,7 +62,7 @@ public class PatchModuleCDS {
"}";
ClassFileInstaller.writeClassToDisk("javax/naming/spi/NamingManager",
InMemoryJavaCompiler.compile("javax.naming.spi.NamingManager", source, "-Xmodule:java.naming"),
InMemoryJavaCompiler.compile("javax.naming.spi.NamingManager", source, "--patch-module=java.naming"),
System.getProperty("test.classes"));
pb = ProcessTools.createJavaProcessBuilder(