eraserpl created NETBEANS-6142:
----------------------------------

             Summary: Navigation to @annotation values got wrong context
                 Key: NETBEANS-6142
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6142
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 12.5
         Environment: NetBeans version: 12.5

jdk version from netbeans.conf (netbeans_jdkhome variable): 
/usr/lib/jvm/bellsoft-java16-amd64/bin/java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9)
OpenJDK 64-Bit Server VM (build 16.0.1+9, mixed mode, sharing)

lsb_release -alsb_release -a
No LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 18.04.5 
LTSRelease: 18.04Codename: bionic
            Reporter: eraserpl


When ctrl+click to value inside any java annotation in editor it opens 
annotation class itself (actual result) and not the class of value it was 
clicked (expected result).

Values inside annotation doesn't get correct selection focus as well (focus 
stays on annotation).

 

In example code clicking on "RetentionPolicy.RUNTIME" heads to 
java.lang.annotation.Retention class.
{code:java}
package com.example.mavenproject;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Main {
}
 
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to