eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Code completion for default methods in ILog missing in certain situations

Open
#2,346 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
59
Forks
127
Avg merge
23h 30m
Merged PRs (30d)
35

Description

If ILog has not yet been used in code, code completion for its default methods does not work.

For example in the eclipse.platform repo I opened `OpenFileMouseHandler` and in line 201 I added ILog and used the quickfix to add the import.

The old log statement is still present, as I still want to copy the existing message to the shorter log API.

Image

I only get the class via code completion.

Image

If I delete the old log statement, code completion starts to work.

Image

This sitational code completion feels broken.

cc @jjohnstn

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in OpenFileMouseHandler around line 201 in the eclipse.platform repository, keeping the existing log statement while adding ILog. Compare content completion before and after deleting the old statement, then trace the Java editor completion path for ILog default methods. Done means the default methods are offered even when the existing log statement remains.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.