eclipse-jdt / eclipse-jdt/eclipse.jdt.ui
The editor automatically removes imported libraries from the class file while saving
- Dominant language
- Java
- Stars
- 59
- Forks
- 127
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 35
Description
Eclipse editor automatically removes imported libraries from the class files while saving it.
**Steps to reproduce the issue:**
1. Checkout: https://github.com/OpenLiberty/open-liberty
2. Import Projects -> `io.openliberty.jakarta.data.1.0_fat_tck`
3. Open `DataStandaloneTckLauncher.java`
4. Comment out `@Ignore("jnosql does not support static metamodel yet")`
5. Save ( i used command+s, as i am in my mac)
6. You can see two imports getting removed. `import org.junit.Ignore;` and `import componenttest.topology.utils.tck.TCKResultsInfo.Type;`
Although `import componenttest.topology.utils.tck.TCKResultsInfo.Type;` is required one.
Contributor guide
Research direction
Reproduce the issue in Open Liberty by opening DataStandaloneTckLauncher.java, uncommenting the described annotation change, and saving with Command+S. Compare the imports before and after saving, then trace the Eclipse JDT UI save/import-handling path; done means the required Type and Ignore imports remain present after saving.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100