Summary: | [1.5][search][annot] search for annotation elements does not seem to be implemented yet | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | eclipse, Olivier_Thomann | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 81441 | ||||||
Attachments: |
|
Description
Markus Keller
2005-01-19 14:26:25 EST
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. |