From: PJ Fanning Date: Wed, 27 Jul 2022 20:07:49 +0000 (+0000) Subject: disable test on java 19 X-Git-Tag: REL_5_2_3~113 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56fe91998a32713ffd16b3a7bf7eeaa47456b859;p=poi.git disable test on java 19 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903067 13f79535-47bb-0310-9956-ffa450edef68 --- 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 25702c117d..3a8455e3e0 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 @@ -168,7 +168,8 @@ public class TestPOIFSDump { @Test @SuppressForbidden("tests java.security features deprecated in java 17 - no other option though") void testMainNoArgs() { - Assumptions.assumeFalse(System.getProperty("java.version").startsWith("18"), + final String javaVersion = System.getProperty("java.version"); + Assumptions.assumeFalse(javaVersion.startsWith("18") || javaVersion.startsWith("19") || javaVersion.startsWith("2"), "SecurityManager does not work any more since JDK 18"); SecurityManager sm = System.getSecurityManager();