apache / apache/netbeans

Find usages does not find any Usages

Open
#4,642 5 comments 1 reaction 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 15

### What happened

When trying to Find Usages, no Usages are found. When clicking "Refresh the refactoring data" (to repeat Find Usages), the dialog with "The original element being refactored is not available. It was deleted or significantly changed. Usages cannot be collected." appears.
The method I finding usages is overloaded. Seems like problem with particular class/file, other classes works fine.
Cleaning, closing/opening doesn't help.

### How to reproduce

Click "Find Usages" on method. No usages are found.

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

Apache NetBeans 14

### Operating System

Linux, Debian 11

### JDK

OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1, mixed mode, sharing), OpenJDK

### 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

Reproduce the failure in Apache NetBeans 15 on Debian 11 with OpenJDK 11, using an overloaded method and the Find Usages action. Compare the behavior with NetBeans 14; the issue is done when usages are found and refreshing the refactoring data no longer reports that the original element is unavailable.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.