While reading the data from excel using below I am getting the warnings: I am using JDK 12.0.1
public static void main(String[] args) throws FileNotFoundException {
File src = new File("FilePath");
FileInputStream fis = new FileInputStream(src);
try {
wb = new XSSFWorkbook(fis);
sheet = wb.getSheet("Contacts");
}
catch (IOException e)
{
e.getMessage();
}
}
public static String getdata(int rowNum, int colNum) throws IOException {
cell = sheet.getRow(rowNum).getCell(colNum);
String cellData =cell.getStringCellValue();
return cellData;
}
}
Warnings: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile$1 (file:/C:/Users/.m2/repository/org/apache/poi/poi-ooxml/3.17/poi-ooxml-3.17.jar) to field java.io.FilterInputStream.in
WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release