8174248: partialUpdateFooMainClass test in tools/jar/modularJar/Basic.java needs to be re-examined
authorsherman
Tue, 14 Feb 2017 11:50:33 -0800
changeset 43797 dab6fb7f37a3
parent 43796 c204d2d789dc
child 43798 c09785baadd1
8174248: partialUpdateFooMainClass test in tools/jar/modularJar/Basic.java needs to be re-examined Reviewed-by: chegar, lancea
jdk/test/tools/jar/modularJar/Basic.java
--- 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();