From 418a633ae52dd2f80a5a265125f89bafe3a81038 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 22 Feb 2022 01:56:40 +0000 Subject: [PATCH] java 17 build issue git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898301 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/extractor/TestOldExcelExtractor.java | 2 ++ poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java index a2bf77ba64..2c4e3f89f4 100644 --- a/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java +++ b/poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java @@ -43,6 +43,7 @@ import org.apache.poi.poifs.filesystem.OfficeXmlFileException; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.util.LocaleUtil; import org.apache.poi.util.RecordFormatException; +import org.apache.poi.util.SuppressForbidden; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -50,6 +51,7 @@ import org.junit.jupiter.api.Test; * Unit tests for the Excel 5/95 and Excel 4 (and older) text * extractor */ +@SuppressForbidden("tests java.security features deprecated in java 17 - no other option though") final class TestOldExcelExtractor { private static OldExcelExtractor createExtractor(String sampleFileName) throws IOException { File file = HSSFTestDataSamples.getSampleFile(sampleFileName); 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 d4bf0d89d2..1b93047148 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 @@ -35,6 +35,7 @@ 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.poi.util.SuppressForbidden; import org.apache.poi.util.TempFile; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; @@ -42,6 +43,7 @@ import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +@SuppressForbidden("tests java.security features deprecated in java 17 - no other option though") public class TestPOIFSDump { private static PrintStream SYSTEM; -- 2.39.5