Bug 94718

Summary: [1.5][search][annot] Find references in workspace breaks on an annotation
Product: [Eclipse Project] JDT Reporter: David Saff <david>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Saff CLA 2005-05-11 10:28:58 EDT
Against I20050509-2010.from20050511_1145

public @interface SetUp {
	String value();
}

@SetUp("howdy")
class MyClass {
	
}

Highlight the declaration of SetUp, and from the context menu, choose
"References > Workspace".  The search will declare that there are no references.
Comment 1 Dirk Baeumer CLA 2005-05-11 12:48:40 EDT
This also affected refactoring (e.g. renaming of annotations). 
Comment 2 Frederic Fusier CLA 2005-05-11 15:19:20 EDT
I've reopened bug 86380 as it failed our tests...
Comment 3 Frederic Fusier CLA 2005-05-11 15:19:51 EDT

*** This bug has been marked as a duplicate of 86380 ***
Comment 4 Frederic Fusier CLA 2005-05-11 15:41:21 EDT
Reopen it is in fact more a side effect of fix for bug 83012...
Comment 5 Frederic Fusier CLA 2005-05-11 17:09:19 EDT
Fixed.

Remove consumeAnnotationModifier() in SourceElementParser was a really bad thing
to do and existing tests for Annotation references unfortunately missed this
(simple) case... => put back + modify index ID

[jdt-core-internal]
Changes done in:
 1) put back SourceElementParser.consumeAnnotationModifiers method
 2) DiskIndex: increase index SIGNATURE

Test case added in JavaSearchBugsTests
Comment 6 Maxime Daniel CLA 2005-05-12 13:02:36 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD-20050512.