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

Search for private references returns impossible "potential" matches in javadoc

Open
#643 3 comments 1 reaction 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
59
Forks
127
Avg merge
22h 47m
Merged PRs (30d)
28

Description

I search for a private local variable using right click > references > workspace, the search offers me a "potential match" in some jar:

![grafik](https://github.com/eclipse-jdt/eclipse.jdt.ui/assets/1331477/6e66b7ad-5a20-4197-9672-3d0e241639dd)

this has several problems:

1. a private field can't be referenced outside of the class in no way so actually anything else can be ignored (and reduce the search time)
2. even if the field would be public or protected, the "potential match" has nothing to do with this class/field at all, the only similarity is that is is named the same

In this case it seems that the javadoc reference
```
/**
* The location of this symbol. Whether a server is allowed to
* return a location without a range depends on the client
* capability {@link SymbolCapabilities#resolveSupport}.
*


* See also {@link SymbolInformation#location}.
*/
```

confuses JDT, but again `SymbolInformation` has no relation to `MavenExternalRuntime` at all...

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.