Skip to content

The type javax.annotation.Nonnull cannot be resolved #2712

@yotov

Description

@yotov

In one of my projects, I'm getting an error after upgrading to the latest version:

The type javax.annotation.Nonnull cannot be resolved. It is indirectly referenced from required .class filesJava(16777540)
Annotation type 'javax.annotation.Nonnull' cannot be found on the build path, which is implicitly needed for null analysisJava(536871894)

I saw the changelog and found that the issue relates to enhancement - Enable annotation-based null analysis. See #1693.

Removing "javax.annotation.Nonnull" from "java.compile.nullAnalysis.nonnull" config fixes the problem for me.

Environment
  • Operating System: MacOS 12.6
  • JDK version: openjdk 17 2021-09-14
  • Visual Studio Code version: 1.71.2
  • Java extension version: 1.11.0

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions