Apache NetBeans version
Apache NetBeans 13
What happened
After switching from 16 to 17 all imports in all module-info.java show as warning. If "remove unused imports" on save is active, all imports get removed on save.

How to reproduce
Create (gradle?) projects with module-info.java
Gradle 7.4
Did this work correctly in an earlier version?
No
Operating System
Ubuntu Budgie 21.10
JDK
openjdk-17.0,1
Apache NetBeans packaging
Other
Anything else
This occurred in 12.6 and 13 when switching from openjdk-16 to openjdk-17.
Both the runtime NB is running on, as well as the gradle build
Are you willing to submit a pull request?
No
Code of Conduct
Yes
Apache NetBeans version
Apache NetBeans 13
What happened
After switching from 16 to 17 all imports in all module-info.java show as warning. If "remove unused imports" on save is active, all imports get removed on save.
How to reproduce
Create (gradle?) projects with module-info.java
Gradle 7.4
Did this work correctly in an earlier version?
No
Operating System
Ubuntu Budgie 21.10
JDK
openjdk-17.0,1
Apache NetBeans packaging
Other
Anything else
This occurred in 12.6 and 13 when switching from openjdk-16 to openjdk-17.
Both the runtime NB is running on, as well as the gradle build
Are you willing to submit a pull request?
No
Code of Conduct
Yes