8157096: [TEST_BUG] test/javax/xml/bind/xjc/8145039/JaxbMarshallTest.java is skipped by jtreg
authoraefimov
Thu, 19 May 2016 15:58:44 +0300
changeset 38426 5d51e882b3a2
parent 38425 3191fb2435f8
child 38427 73d309f504f6
8157096: [TEST_BUG] test/javax/xml/bind/xjc/8145039/JaxbMarshallTest.java is skipped by jtreg Reviewed-by: shade, joehw
jdk/test/javax/xml/bind/xjc/8145039/JaxbMarshallTest.java
--- a/jdk/test/javax/xml/bind/xjc/8145039/JaxbMarshallTest.java	Thu May 19 13:10:08 2016 +0100
+++ b/jdk/test/javax/xml/bind/xjc/8145039/JaxbMarshallTest.java	Thu May 19 15:58:44 2016 +0300
@@ -23,10 +23,10 @@
 
 /*
  * @test
- * @bug 8145039
+ * @bug 8145039 8157096
  * @summary Check that marshalling of xjc generated class doesn't throw
  *          ClassCast exception.
- * @modules javax.xml.bind
+ * @modules java.xml.bind
  * @library /lib/testlibrary
  * @run testng/othervm JaxbMarshallTest
  */
@@ -127,6 +127,8 @@
     // Compile java classes with javac tool
     void compileXjcGeneratedClasses() throws Exception {
         JDKToolLauncher javacLauncher = JDKToolLauncher.createUsingTestJDK("javac");
+        javacLauncher.addToolArg("-addmods");
+        javacLauncher.addToolArg("java.xml.bind");
         javacLauncher.addToolArg(xjcResultDir.resolve("ObjectFactory.java").toString());
         javacLauncher.addToolArg(xjcResultDir.resolve("TypesLongList.java").toString());
         javacLauncher.addToolArg(xjcResultDir.resolve("package-info.java").toString());