]> source.dussan.org Git - poi.git/commitdiff
Allow one more add-opens to silence one more warning seen in Java 9/Java 10 currently
authorDominik Stadler <centic@apache.org>
Mon, 30 Apr 2018 11:21:31 +0000 (11:21 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 30 Apr 2018 11:21:31 +0000 (11:21 +0000)
Use latest JDK 10 versions

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1830551 13f79535-47bb-0310-9956-ffa450edef68

build.xml
jenkins/create_jobs.groovy
src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFSimpleShape.java

index dfb82cc9a264657d5f1249d2ed2ed059145edd1e..db733412e78cccfde1fc3dd49499d9b914c4d112 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -317,6 +317,7 @@ under the License.
     <property name="java9addopens3" value="-Dthis.is.a.dummy=true"/>
     <property name="java9addopens4" value="-Dthis.is.a.dummy=true"/>
     <property name="java9addopens5" value="-Dthis.is.a.dummy=true"/>
+    <property name="java9addopens6" value="-Dthis.is.a.dummy=true"/>
 
     <path id="main.classpath">
         <pathelement location="${main.commons-logging.jar}"/>
@@ -1308,6 +1309,7 @@ under the License.
                 <jvmarg value="${java9addopens3}" />
                 <jvmarg value="${java9addopens4}" />
                 <jvmarg value="${java9addopens5}" />
+                <jvmarg value="${java9addopens6}" />
                 <jvmarg value="${file.leak.detector}" />
                 <formatter type="plain"/>
                 <formatter type="xml"/>
@@ -1380,6 +1382,7 @@ under the License.
                 <jvmarg value="${java9addopens3}" />
                 <jvmarg value="${java9addopens4}" />
                 <jvmarg value="${java9addopens5}" />
+                <jvmarg value="${java9addopens6}" />
                 <formatter type="plain"/>
                 <formatter type="xml"/>
                 <batchtest todir="${scratchpad.reports.test}">
@@ -1430,6 +1433,7 @@ under the License.
                   <jvmarg value="${java9addopens3}" />
                   <jvmarg value="${java9addopens4}" />
                   <jvmarg value="${java9addopens5}" />
+                  <jvmarg value="${java9addopens6}" />
                   <!-- jvmarg value="-Duser.timezone=UTC"/ -->
                   <jvmarg value="${file.leak.detector}" />
                   <formatter type="plain"/>
@@ -1465,6 +1469,7 @@ under the License.
                   <jvmarg value="${java9addopens3}" />
                   <jvmarg value="${java9addopens4}" />
                   <jvmarg value="${java9addopens5}" />
+                  <jvmarg value="${java9addopens6}" />
                   <formatter type="plain"/>
                   <formatter type="xml"/>
                   <batchtest todir="${ooxml.reports.test}">
@@ -1514,6 +1519,7 @@ under the License.
                 <jvmarg value="${java9addopens3}" />
                 <jvmarg value="${java9addopens4}" />
                 <jvmarg value="${java9addopens5}" />
+                <jvmarg value="${java9addopens6}" />
                 <formatter type="plain"/>
                 <formatter type="xml"/>
                 <batchtest todir="${integration.reports.test}">
@@ -1573,6 +1579,7 @@ under the License.
             <jvmarg value="${java9addopens3}" />
             <jvmarg value="${java9addopens4}" />
             <jvmarg value="${java9addopens5}" />
+            <jvmarg value="${java9addopens6}" />
             <jvmarg value="${file.leak.detector}" />
             <arg value="-ooxml"/>
             <arg value="${ooxml.lite-merged.dir}/ooxml-lite-merged.jar"/>
@@ -1619,6 +1626,7 @@ under the License.
                 <jvmarg value="${java9addopens3}" />
                 <jvmarg value="${java9addopens4}" />
                 <jvmarg value="${java9addopens5}" />
+                <jvmarg value="${java9addopens6}" />
                 <jvmarg value="${file.leak.detector}" />
                 <formatter type="plain"/>
                 <formatter type="xml"/>
index 449ab0697beeb6cf56b2e8e962f12b7f9e472667..a3bf7b193621a7b423596282e59749ca30345f2a 100644 (file)
@@ -34,6 +34,7 @@ def poijobs = [
                        '-Djava9addopens3=--add-opens=java.base/java.nio=ALL-UNNAMED',
                        '-Djava9addopens4=--add-opens=java.base/java.lang=ALL-UNNAMED',
                        '-Djava9addopens5=--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED',
+                       '-Djava9addopens6=--add-opens=java.base/java.lang=java.xml.bind',
                        '-Djava.locale.providers=JRE,CLDR'],
           skipcigame: true
         ],
@@ -46,6 +47,7 @@ def poijobs = [
                        '-Djava9addopens3=--add-opens=java.base/java.nio=ALL-UNNAMED',
                        '-Djava9addopens4=--add-opens=java.base/java.lang=ALL-UNNAMED',
                        '-Djava9addopens5=--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED',
+                       '-Djava9addopens6=--add-opens=java.base/java.lang=java.xml.bind',
                        '-Djava.locale.providers=JRE,CLDR'],
           skipcigame: true
         ],
@@ -90,7 +92,8 @@ def defaultSlaves = 'ubuntu&&!cloud-slave&&!H15&&!H17&&!H18&&!H24&&!ubuntu-4&&!H
 def jdkMapping = [
         '1.8': 'JDK 1.8 (latest)',
         '1.9': 'JDK 1.9 (latest)',
-        '1.10': 'JDK 10 b36 (early access build)',
+        '1.10': 'JDK 10 (latest)',
+        '1.11': 'JDK 11 b8 (early access build)',
         'OpenJDK': 'OpenJDK 8 (on Ubuntu only) ',   // blank is required here until the name in the Jenkins instance is fixed!
         'IBMJDK': 'IBM 1.8 64-bit (on Ubuntu only)',
 ]
@@ -434,8 +437,10 @@ Unfortunately we often see builds break because of changes/new machines...'''
                 'JDK 9 b181',
                 'JDK 9 b181 (unlimited security)',
 
-                'JDK 10 b36 (early access build)',
-                'JDK 10 b37 (early access build) (Windows Only)'
+                'JDK 10 (latest)',
+                'JDK 10 b46 (Windows Only)',
+
+                'JDK 11 b8 (early access build)'
         )
         label('Nodes',
                 'beam1','beam2','beam3','beam4','beam5','beam6','beam7','beam8',
index 4531ddd85b8ab62a58f918336bb7b2398026b47c..e35ed35a29db7c8d871de9160f6e7aecbf1449be 100644 (file)
@@ -65,9 +65,9 @@ public class TestXSLFSimpleShape {
         assertFalse(getSpPr(shape).isSetLn());
 
         assertEquals(0., shape.getLineWidth(), 0);
-        assertEquals(null, shape.getLineColor());
-        assertEquals(null, shape.getLineDash());
-        assertEquals(null, shape.getLineCap());
+        assertNull(shape.getLineColor());
+        assertNull(shape.getLineDash());
+        assertNull(shape.getLineCap());
 
         shape.setLineWidth(0);
         shape.setLineColor(null);
@@ -125,7 +125,7 @@ public class TestXSLFSimpleShape {
         assertEquals(Color.BLUE, shape.getLineColor());
         assertTrue(getSpPr(shape).getLn().isSetSolidFill());
         shape.setLineColor(null);
-        assertEquals(null, shape.getLineColor());
+        assertNull(shape.getLineColor());
         // setting dash width to null unsets the SolidFill element
         assertFalse(getSpPr(shape).getLn().isSetSolidFill());
 
@@ -139,9 +139,9 @@ public class TestXSLFSimpleShape {
         ln3.setLineWidth(1.);
         assertEquals(1., ln3.getLineWidth(), 0);
         ln3.setLineDash(null);
-        assertEquals(null, ln3.getLineDash());
+        assertNull(ln3.getLineDash());
         ln3.setLineCap(null);
-        assertEquals(null, ln3.getLineDash());
+        assertNull(ln3.getLineDash());
         
         ppt.close();
     }