Hi there,

currently I try to migrate my Projects to the latest JDK9 as well as
updating used libaries like apache poi.
Comming from v3.14 and JDK7 I have a strange problem that i can't find the
solution to:

After updating apache poi I had to adjust some parts of my code because of
deprecated/removed functions. (Migration to the new Color and FillPattern
enums for example).

This step works just fine. After that I started the migration from JDK7 to
JDK9. As soon as i switch die compiler level and system library to jdk9
some of the Apache POI classes become unresolveable and/or unaccessible.

I already have a StackOverFlow post concerning this matter here with more
details:
https://stackoverflow.com/questions/48640064/migrating-apache-poi-3-14-to-3-17-and-jdk9

The offending classes are:

import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.xssf.usermodel.XSSFColor;
import org.apache.poi.xssf.usermodel.XSSFFont;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

All result in either "cannot be resolved" or "is not accessible" depending
on whether i do a rebuild or a save after edit (which is strange and might
be an eclipse bug?).

Other imports from the library like:
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
import org.apache.poi.xssf.usermodel.XSSFSheet;

work just fine.

When I switch the project back to JDK7 without touching any code the stuff
compiles again just fine.

What's wrong here?

Greetings,
Markus

Reply via email to