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

Nonsensical Autocompletes since some version after 2020-06

Open
#4,185 0 comments 0 reactions 0 assignees View on GitHub
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

Image

Let's create an object of our Test class with the generic parameter E. Start by typing this

Image

and now autocomplete to Test()

Image

This is how it should be. Add semicolon and done.

Now, let's switch to eclipse 2025-09, and do the same thing again.

Image

Image

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

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.