Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

”Go to References" result contain wrong referrences #2227

Closed
whinc opened this issue Nov 25, 2021 · 4 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#1984
Closed

”Go to References" result contain wrong referrences #2227

whinc opened this issue Nov 25, 2021 · 4 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#1984
Assignees

Comments

@whinc
Copy link

whinc commented Nov 25, 2021

[provide a description of the issue]

Environment
  • Operating System: macos 10.14.6
  • JDK version: openjdk 11.0.11
  • Visual Studio Code version: 1.62.3
  • Java extension version: v1.0.0
Steps To Reproduce
  1. define custom User class
  2. click context menu "Go to referrences" on User class

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

image

Expected Result
Additional Informations
@fbricon
Copy link
Collaborator

fbricon commented Nov 25, 2021

Can you please provide a sample project reproducing this issue?

@whinc
Copy link
Author

whinc commented Nov 27, 2021

@fbricon it'a a demo below generated by spring initializr

demo.zip

image

@rgrunber
Copy link
Member

rgrunber commented Jan 11, 2022

@snjeza Wouldn't we also have to adjust things like CodeLensHandler (which uses its own SearchEngine for references) ?

Implementations seem to already filter out inaccurate matches, so they should be fine.

@snjeza
Copy link
Contributor

snjeza commented Jan 11, 2022

Wouldn't we also have to adjust things like CodeLensHandler (which uses its own SearchEngine for references) ?

@rgrunber I have done it. See eclipse-jdtls/eclipse.jdt.ls@1aa927b

@rgrunber rgrunber changed the title ”Go to Referrences" result contain wrong referrences ”Go to References" result contain wrong referrences Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants