8174248: partialUpdateFooMainClass test in tools/jar/modularJar/Basic.java needs to be re-examined
Reviewed-by: chegar, lancea
--- a/jdk/test/tools/jar/modularJar/Basic.java Tue Feb 14 21:56:09 2017 +0530
+++ b/jdk/test/tools/jar/modularJar/Basic.java Tue Feb 14 11:50:33 2017 -0800
@@ -46,7 +46,7 @@
/*
* @test
- * @bug 8167328 8171830 8165640
+ * @bug 8167328 8171830 8165640 8174248
* @library /lib/testlibrary
* @modules jdk.compiler
* jdk.jartool
@@ -323,7 +323,7 @@
.resultChecker(r -> assertModuleData(r, FOO));
}
- @Test(enabled = false)
+ @Test
public void partialUpdateFooMainClass() throws IOException {
Path mp = Paths.get("partialUpdateFooMainClass");
createTestDir(mp);
@@ -333,7 +333,7 @@
// A "bad" main class in first create ( and no version )
jar("--create",
"--file=" + modularJar.toString(),
- "--main-class=" + "IAmNotTheEntryPoint",
+ "--main-class=" + "jdk.test.foo.IAmNotTheEntryPoint",
"--no-manifest",
"-C", modClasses.toString(), ".") // includes module-info.class
.assertSuccess();