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

[BETA_JAVA28] Add option to hide identity methods from autocomplete on value objects

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

Description

Related to #5332. [Object](https://download.java.net/java/early_access/jdk28/docs/api/java.base/java/lang/Object.html#getClass()) is specified to throw on all `wait` and `notify/All` methods for value objects. When invoking `valueObject.` autocomplete, it's reasonable to not show these methods. I suggest an option to allow hiding them if the default remains showing them (I can't think of a single reason a user would want to call them in new code, and current invocations should/could give a configurable error/warning/info).

Contributor guide

Open the contributing guide

Research direction

Start with the Java content-assist/autocomplete handling for value objects and review the related discussion in #5332. Trace how Object methods such as wait and notify/All are collected, then determine where an option could control their visibility and verify that the option hides them without changing the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.