Skip to content

All imports in all module-info.java show as warning #3731

@martinmeeser

Description

@martinmeeser

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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions