Bug 128033 - [1.5][search] Not all references are found in standard annotations
Summary: [1.5][search] Not all references are found in standard annotations
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-15 09:58 EST by Frederic Fusier CLA
Modified: 2006-02-15 12:43 EST (History)
0 users

See Also:


Attachments
Patch to fix this issue (6.14 KB, patch)
2006-02-15 10:04 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2006-02-15 09:58:30 EST
Even with bug 124469 comment 6 patch applied, search engine still misses some references in standard annotations.

Here are failing tests cases:
1) search for Target references: only reference in Target.class is found although we should get one in SuppressWarnings, Override, etc...
2) search for ElementType.TYPE reference: no occurrence is foud although there's one in SuppressWarning
Comment 1 Frederic Fusier CLA 2006-02-15 10:04:29 EST
Created attachment 34774 [details]
Patch to fix this issue

Problem comes from BinaryIndexer.

Test case 1) is due to the fact that method addBinaryStandardAnnotations was missing multiple annotations references in class file. Only last one was indexed.

Test case 2) comes from the fact that method addBinaryTargetStandardAnnotation returned before indexing ElementType fields references...
Comment 2 Frederic Fusier CLA 2006-02-15 11:27:35 EST
Released in HEAD.

Test cases will be added later...
Comment 3 David Audel CLA 2006-02-15 12:43:34 EST
Verified for 3.2 M5 using build I20060215-0800 + JDT/Core HEAD