summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-22 01:56:40 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-22 01:56:40 +0000
commit418a633ae52dd2f80a5a265125f89bafe3a81038 (patch)
tree9dbdb86733c1ca9c34d93748c9ce52a627c8e8d4
parent9dca5a4fe41b7e4134c54e392a7f7494a6321957 (diff)
downloadpoi-418a633ae52dd2f80a5a265125f89bafe3a81038.tar.gz
poi-418a633ae52dd2f80a5a265125f89bafe3a81038.zip
java 17 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898301 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java2
-rw-r--r--poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java2
2 files changed, 4 insertions, 0 deletions
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;