eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Java editor error marker without compile errors

Open
#729 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Observed during experiments for #723.

To reproduce:

1. Import projects from attached archive: [JavaEditorCompileErrorBugzip.zip](https://github.com/eclipse-jdt/eclipse.jdt.core/files/10714766/JavaEditorCompileErrorBugzip.zip)
2. Open source file `Test1.java`
3. Observe error marker in the Java editor: `The method test2(null) is undefined for the type Test2`
4. Observe there are no actual compile errors / error markers listed in the `Problems` view.
5. Clean and build the workspace (main menu -> Project -> "Clean...").
6. Run `Test1` as Java application, observe it runs fine.

The Java editor error marker is shown when `TestLibraryUnnamedModule.jar` is exported from the classpath of project `Test2`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.