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

[Bug - Go To/Navigation Java Records] - Can not go to Class

Open
#2,809 15 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 Instances are created under sealed interface the **Go To navigation** does not work.

Steps To Reproduce
- Clone https://github.com/nipafx/nox.zone
- Checkout this commit **e3280724a270be9775f9360c390ded5535d3eb18**
- Import into VSCode
- Open HtmlElement.java
- Try to naviagate to Anchor class at 28 line with CTRL + Left Click, you can try any class from 28 line to 55.
In order to replicate th screenshot below go to Anchor class line 25:12 and Right Click on **Anchor** return type and then click Open Declaration.
![image](https://github.com/user-attachments/assets/ec0e8292-5d0b-48b6-8737-0ef7686b47fe)

Also, the same behaviour is present in **ListItem.java** class when the **CTRL + Left Click** is executed at *17** line on **ListItem**, or any of the input params of the methods.

In the screenshot below, the references are only loaded for constructor but not for the methods.
Screenshoot for ListItem
![image](https://github.com/user-attachments/assets/7b2103aa-29ce-4fce-8f9b-8626ae993e5d)

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.