eclipse-jdt / eclipse-jdt/eclipse.jdt.ui
Search for private references returns impossible "potential" matches in javadoc
- 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:

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
Assessment
This issue has not been assessed yet.