Hello Netbeans Team,

first of all congrats to Netbeans 10 and the successful transition to Apache!


Ran into an issue on a Maven project with Java 11 and JPMS:

On test sources the Java editor's auto-complete and Fix-Imports functions do 
not take the test dependency classpath into account.
The suggestions are limited by the module visibility declared in the 
module-info.java of the main sources.

So packages of e.g. JUnit, Mockito, or any other library that only resides on 
the test classpath can’t be auto-completed.

The sources compile and no syntax error is shown in the editor panel when 
typing the imports manually.

Here an example project to show the problem: 
https://github.com/winter-s/nb10-jpms-autocomplete-problem 
<https://github.com/winter-s/nb10-jpms-autocomplete-problem>


Is there anything missing in the pom.xml, or is it a bug?


Thanks a lot
Stefan

Reply via email to