Skip to content

[4.35] On startup Java editor shows error annotations on valid code that don't always disappear #1667

@Phillipus

Description

@Phillipus

This is transferred from eclipse-jdt/eclipse.jdt.ui#2069

Eclipse 4.35 RC2
Java Temurin 21 SDK
Reproduced on Windows 11 and Mac Sequoia (not tested on Linux)

  1. Download Eclipse 4.35 SDK from https://download.eclipse.org/eclipse/downloads/
  2. Launch Eclipse with a fresh workspace
  3. Create a sample plug-in project "Hello, World Command"
  4. Open the file SampleHandler.java in the editor
  5. Now close Eclipse and re-open Eclipse a few times.
  6. Upon opening Eclipse I get red problem markers in the file. Many times these problem markers do not clear.

Edit - the first time re-opening Eclipse the red markers will disappear but after closing and re-opening thereafter the red markers remain.

Image

A workaround is to add some text to the file such as a space and then undo.

This does not happen in Eclipse 4.34.

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions