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

In an MR project quick fix updates the wrong module-info.java

Open
#5,248 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

In an MR project with module-info.java per release folder src, src17, src24:
* in a class in src24 add a reference to a not-accessible jdk class.
* invoke quick fix "Add 'requires java.foo' in module-info.java"

This statement will be added in `src/module-info.java` while probably it should be added in `src24/module-info.java`.

This issue probably needs a change in jdt.ui, but let's first check if jdt.core provides all necessary information.

Contributor guide

Open the contributing guide

Research direction

Reproduce the quick fix in an MR project using src, src17, and src24, with the inaccessible reference in a class under src24. Trace the "Add 'requires java.foo' in module-info.java" entry point through jdt.core and the likely jdt.ui change, checking whether core exposes the relevant module information. Done means the requires statement targets src24/module-info.java rather than src/module-info.java.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.