apache / apache/netbeans

Projects that use the same package and class names point to the wrong files in "link" operations

Open
#7,210 1 comment 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 21

### What happened

Projects that use the same package and class names are being mixed in "go to" operations. Those operations for example is "select in projects" menu and any click in the output terminal that links a line in a class. The operations link to the wrong class, they link to the first available project found in project list and not to the current working one.

### Language / Project Type / NetBeans Component

_No response_

### How to reproduce

Add 2 projects that are identical copies (like a fork/branch), packages and classes will have the same name, the project name can differ. Edit or use the 2nd one. Links will be directed to the 1st instead of the current.

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

No / Don't know

### Operating System

windows 10 x64

### JDK

21

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

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

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Apache NetBeans 21 with two identical projects and compare the “select in projects” operation with output-terminal line links. Trace how each operation chooses a project when package and class names match. Done means both operations open or select the class in the current project rather than the first project listed.

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.