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

Completion fails when hiding enclosing type

Open
#2,156 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

eg.

```java
public class EnclosingType {
public class EnclosingType {
public String getString() {
ret/* HERE */
}
}
}
```

Completion isn't returned here since the inner `EnclosingType` is marked as an error, since the names overlap. I can understand that completing `EnclosingType./*HERE*/` would be hard/impossible but I think it should be possible to fill in the expected `return`.

Then again, I don't know all the details of how completion is handled. Please let me know if you think it is/isn't feasible.

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.