You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Jerome Lelasseux <le...@yahoo.com.INVALID> on 2022/04/04 08:47:03 UTC
Problem enabling JDK17 jdk.incubator.foreign on NB13
I have a Netbeans module which uses jdk.incubator.foreign from JDK17. It does compile OK when I add "--add-modules=jdk.incubator.foreign" in the module properties/Compiling options, but the NB editor still marks import statements with errors:
import jdk.incubator.foreign.CLinker; is marked "package is not visible. Package jdk.incubator.foreign is declared in module jdk.incubator.foreign, which is not in the module graph".
Note that editor does not mark an error when I use the class in the code (eg. "var cLinkerInstance = CLinker.getInstance();"), but autocomplete is not available on the class, which is really not convenient.
Thanks for your help.Jerome