< prev index next >

test/langtools/jdk/javadoc/tool/modules/ReleaseOptions.java

Print this page

        

*** 56,66 **** "package p; public class C { }"); Task.Result result = execNegativeTask("--release", "8", "--patch-module", "m=" + mpath.toString(), "p"); ! assertMessagePresent(".*not allowed with target 1.8.*"); assertMessageNotPresent(".*Exception*"); assertMessageNotPresent(".java.lang.AssertionError.*"); } @Test --- 56,66 ---- "package p; public class C { }"); Task.Result result = execNegativeTask("--release", "8", "--patch-module", "m=" + mpath.toString(), "p"); ! assertMessagePresent(".*not allowed with target 8.*"); assertMessageNotPresent(".*Exception*"); assertMessageNotPresent(".java.lang.AssertionError.*"); } @Test
*** 90,99 **** "package p; public class C { }"); Task.Result result = execNegativeTask("--release", "8", "--module-source-path", src.toString(), "--module", "m"); ! assertMessagePresent(".*not allowed with target 1.8.*"); assertMessageNotPresent(".*Exception*"); assertMessageNotPresent(".java.lang.AssertionError.*"); } } --- 90,99 ---- "package p; public class C { }"); Task.Result result = execNegativeTask("--release", "8", "--module-source-path", src.toString(), "--module", "m"); ! assertMessagePresent(".*not allowed with target 8.*"); assertMessageNotPresent(".*Exception*"); assertMessageNotPresent(".java.lang.AssertionError.*"); } }
< prev index next >