Go To Hierachy Addition not working in NB19
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 19
### What happened
I was working my way through the Java Visual Debugging tutorial, which uses the bundled Anagram Game project. After taking a GUI snapshot, right clicking a component in the snapshot or navigator panes shows the Go to Hierarchy Addition option, but selecting the option does not display any source. The Go to Declaration and Go To Source functions work correctly.

### How to reproduce
Using the Anagram Game project:
1. Start Debug
2. Take a GUI Snapshot.
3. Select a GUI component from the snapshot pane or the navigator pane.
4. Right click the selected component
5. Select Go To Hierarchy Addition
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Kubuntu 22.04
### JDK
IMPLEMENTOR="Oracle Corporation" JAVA_RUNTIME_VERSION="20.0.2+9-78" JAVA_VERSION="20.0.2" JAVA_VERSION_DATE="2023-07-18" LIBC="gnu" MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.zipfs jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.concurrent jdk.incubator.vector jdk.internal.le jdk.internal.opt jdk.internal.vm.ci jdk.internal.vm.compiler jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.unsupported.desktop jdk.xml.dom" OS_ARCH="x86_64" OS_NAME="Linux" SOURCE=".:git:9ced461a4d8c"
### Apache NetBeans packaging
Apache NetBeans Snap Package
### Anything else
I've run through this scenario several times, the issue occurs every time. I've got a good deal of Java experience, but I am not familiar with the Netbeans code base, so I am hesitant to submit a pull request.
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the problem with the bundled Anagram Game project: start debugging, take a GUI snapshot, and invoke Go To Hierarchy Addition from the snapshot or navigator pane. Trace that action in the NetBeans GUI snapshot/debugger code; done means it displays the selected component's source as Go To Declaration and Go To Source do.
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
- Mostly clear
- Newbie friendliness
- 35/100