Browse Source

java 17 build issue

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898301 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_1
PJ Fanning 2 years ago
parent
commit
418a633ae5

+ 2
- 0
poi/src/test/java/org/apache/poi/hssf/extractor/TestOldExcelExtractor.java View File

@@ -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);

+ 2
- 0
poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java View File

@@ -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;

Loading…
Cancel
Save