Bug 577013 - Find references of classes/interfaces in String literals
Summary: Find references of classes/interfaces in String literals
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 13:57 EDT by Julian Ruppel CLA
Modified: 2021-11-02 13:57 EDT (History)
0 users

See Also:


Attachments
Literal finds referenced class (66.25 KB, image/png)
2021-11-02 13:57 EDT, Julian Ruppel CLA
no flags Details
Referenced class does not find literal (71.21 KB, image/png)
2021-11-02 13:57 EDT, Julian Ruppel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ruppel CLA 2021-11-02 13:57:26 EDT
Created attachment 287426 [details]
Literal finds referenced class

If I have a class that is mentioned in a String literal, e.g. a JPA SQL query, this occurrence is not found when I search for references in the workspace.

However, it seems that the literal has already some kind of knowledge about the referenced class as it is capable to identify and link to the correct class.

See screenshots.

So, since the base capability apparently is already there, I propose to include the String literal search in the Find References functionality.
Comment 1 Julian Ruppel CLA 2021-11-02 13:57:55 EDT
Created attachment 287427 [details]
Referenced class does not find literal