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

[Bug - Go To/Navigation/References] - Does not work for Private Methods/Constructor

Open
#2,810 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

When I try to find all references for private method I get nothing. Is this desired behaviour?

##### Steps To Reproduce
1. Clone https://github.com/nipafx/nox.zone
2. Navigate to ResourceGatherer.java
3. Go to Line 83, private static String computeResourceFileName(Path sourceFile, String resourceName) {
4. Right click on **computeResourceFileName** method and select Go To References

**Constructor**
Same steps should be performed for **constructor** of **ResourceGatherer** class. When the Go To References is called on constructor it will also be blank, however the class is instansiated at **ElementResolver.java** at line **68**

It will say that there are no references, however the method is used within the class.

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.