Bug 94718 - [1.5][search][annot] Find references in workspace breaks on an annotation
Summary: [1.5][search][annot] Find references in workspace breaks on an annotation
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 10:28 EDT by David Saff CLA
Modified: 2005-05-12 13:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.