< prev index next >

test/tools/javac/6627362/T6627362.java

Print this page
rev 3947 : imported patch xmodule-to-patch-module

*** 66,78 **** void testNoClone() throws Exception { // compile and disassemble E.java, using modified Object.java, // check for reference to System.arraycopy File x = new File(testSrc, "x"); ! String[] jcArgs = { "-d", ".", "-Xmodule:java.base", new File(x, "E.java").getPath(), ! new File(x, "Object.java").getPath()}; compile(jcArgs); String[] jpArgs = { "-classpath", ".", "-c", "E" }; StringWriter sw = new StringWriter(); --- 66,78 ---- void testNoClone() throws Exception { // compile and disassemble E.java, using modified Object.java, // check for reference to System.arraycopy File x = new File(testSrc, "x"); ! String[] jcArgs = { "-d", ".", "--patch-module", "java.base=" + x.getAbsolutePath(), new File(x, "E.java").getPath(), ! new File(new File(new File(x, "java"), "lang"), "Object.java").getPath()}; compile(jcArgs); String[] jpArgs = { "-classpath", ".", "-c", "E" }; StringWriter sw = new StringWriter();
< prev index next >