aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-12-06 15:00:06 +0000
committerDominik Stadler <centic@apache.org>2021-12-06 15:00:06 +0000
commit21039bd2b1064db9469d6cfec83308c3418a0139 (patch)
tree471bebc9f169e6d460a85318e1e02e2c5a068436 /poi
parent2d347b5a610023427980941fd458422b638158bd (diff)
downloadpoi-21039bd2b1064db9469d6cfec83308c3418a0139.tar.gz
poi-21039bd2b1064db9469d6cfec83308c3418a0139.zip
Some more changes for early support for JDK 18
Adjust one test which fails with JDK 18 because of remove SecurityManager Adjust excludes for JaCoCo as it does not run on JDK 18 otherwise Adjust some JPMS settings which are not available any more on JDK 18 Some other things do not work yet, e.g. spotbugs Also print out if CIBuild is selected Only run signing if actually publishing to avoid failures if signing key is defined locally git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895626 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java b/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
index 4482607e62..d4bf0d89d2 100644
--- a/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
+++ b/poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java
@@ -29,15 +29,16 @@ import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.security.Permission;
+import org.apache.commons.io.output.NullPrintStream;
import org.apache.poi.hssf.HSSFTestDataSamples;
import org.apache.poi.poifs.filesystem.NotOLE2FileException;
import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.poifs.property.PropertyTable;
-import org.apache.commons.io.output.NullPrintStream;
import org.apache.poi.util.TempFile;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
@@ -151,6 +152,9 @@ public class TestPOIFSDump {
@Test
void testMainNoArgs() {
+ Assumptions.assumeFalse(System.getProperty("java.version").startsWith("18"),
+ "SecurityManager does not work any more since JDK 18");
+
SecurityManager sm = System.getSecurityManager();
try {
System.setSecurityManager(new SecurityManager() {