eclipse-jdt / eclipse-jdt/eclipse.jdt.core
Nonsensical Autocompletes since some version after 2020-06
- Dominant language
- Java
- Stars
- 237
- Forks
- 195
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 47
Description
Let's start with the following class in Eclipse 2020-06
Let's create an object of our Test class with the generic parameter E. Start by typing this
and now autocomplete to Test()
This is how it should be. Add semicolon and done.
Now, let's switch to eclipse 2025-09, and do the same thing again.
It autocompletes the generic parameter to Test.E, which does not work. I now have to manually go back and remove it.
There are multiple issues with this.
1. The autocomplete produces code that can't be compiled, and needs to be manually fixed.
2. The previous eclipse version does not autocomplete it to ````, it just adds ``<>``. There's probably some option hidden in the options menu somewhere where the default value got changed. It is really annoying when this happens, and I cannot find where to change it back to the previous behavior. I looked through the options menu, I searched on google, nothing.
Contributor guide
Assessment
This issue has not been assessed yet.