Community
Participate
Working Groups
I20050118-1015 Search for A.name() yields no results (no references, no declarations): @A(name="X") @interface A { String name() default "Me"; }
Additional caveat: A search for references to the specially named element "value" must also find references in SingleMemberAnnotations. For example: @I(12) @interface I { @I(value=13) int value(); } => A match must be returned for the implicit reference in @I(12).
*** Bug 84659 has been marked as a duplicate of this bug. ***
*** Bug 85423 has been marked as a duplicate of this bug. ***
On the plan for M7, privileging API work.
This defect prevents UI from renaming annotation members
Created attachment 20238 [details] Patch to implement this functionality Note that matches for implicit reference have a length equals to 0. User will not see explicitely them in editor but can reach them easily using Search view...
Patch applied in HEAD. Test cases added in JavaSearchBugsTests
For the records (see bug 94062): For implicit references, SearchMatch#isImplicit() is now true, and the length is the length of the SingleMemberAnnotation's value expression.
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.