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


Reply via email to