-
Notifications
You must be signed in to change notification settings - Fork 842
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
Navigate to source does not work for annotation with default value of type Class #4186
Comments
good catch. thanks for the compact reproducer. |
It is really annoying mainly if you heavily work with annotations e.g. Spring Boot, Quarkus... |
…start position Closes: apache#4186
…for start position Closes: apache#4186
@hlavki @Saljack could you please test the nightly build available from PR #7378? Direct link: https://github.com/apache/netbeans/suites/23738068067/artifacts/1498621505 |
It works like a charm 👍 Thank you so much. I tested these combinations: @Import(Something.class)
@Import(value = {Something.class} )
@Import(value = {Something.class, Object.class} )
@Import
@SpringBootApplication(scanBasePackageClasses = Something.class, exclude = Object.class) and in all cases, it is linked to a correct annotation or a class parameter. I assume it is too late for NetBeans 22 😢 |
@Saljack thank you for the quick check.
NB22 is still in RC phase. While I wanted to wait for CI/CD to complete and then decide, @mbien beat me to it and went ahead, reviewed and added to NB22 milestone. Meanwhile @ebarboni also merged the change to delivery for the next RC. So yes, it should be released with next version. |
Apache NetBeans version
Apache NetBeans latest daily build
What happened
When I have code e.g.:
Pressing key
Ctrl
and click mouse onString.class
, netbeans opens source ofRunWith.java
instead ofString.java
. Also JavaDoc showsRunWith.java
.How to reproduce
See the description above.
Did this work correctly in an earlier version?
No
Operating System
Linux 5.17.9-1-default, openSUSE Tumbleweed, x86_64
JDK
18.0.1
Apache NetBeans packaging
Own source build
Anything else
No response
Are you willing to submit a pull request?
Yes
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: