Skip to content

False positive warnings and errors #3807

@WillsterJohnson

Description

@WillsterJohnson

When loading a java project, the extension reports hundreds of warnings and errors. once those files are opened, the nonsenese warnings and errors disappear.
If at any point all java files are closed, the nonsense warnings and errors reappear.

The only way to get rid of them is to open every file they appear in.

Environment
  • Operating System: MacOS 14.5
  • Visual Studio Code version: 1.95.0
  • Java extension version: 1.35.1
$ java -version
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Zulu22.32+15-CA (build 22.0.2+9)
OpenJDK 64-Bit Server VM Zulu22.32+15-CA (build 22.0.2+9, mixed mode, sharing)
Steps To Reproduce
  1. Open a relatively large java project
  2. observe nonsense errors and warnings

Dozens of warnings for file ArrayList.java

No issues found in file after opening

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions