apache / apache/netbeans

Find usages results window shows the wrong method name

Open
#5,129 5 comments 0 reactions 0 assignees View on GitHub
Java kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

Find usages of a private field works OK, but it appears some method names in the result window are wrong, though the line number is correct.

See image attached, line 310, method name should be cleanup() instead of getNoteViews().
![2022-12-21 11_46_18-PianoRollEditor - Apache NetBeans IDE 16](https://user-images.githubusercontent.com/54775378/208888588-6a87649f-089d-4e2f-96aa-6124380c45a9.png)

### How to reproduce

_No response_

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

WIN10

### JDK

JDK 17 x64 Adoptium

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing Find Usages for a private field in Apache NetBeans 16 on the example project shown in the issue, focusing on line 310. Compare the displayed method name with the source, and consider the issue complete when the result shows cleanup() rather than getNoteViews().

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.