Bug 207257 - [search] SearchEngine returns incorrectly typed SearchMatch when searching for local variable declarations
Summary: [search] SearchEngine returns incorrectly typed SearchMatch when searching fo...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 22:43 EDT by Raffi Khatchadourian CLA
Modified: 2007-10-29 08:55 EDT (History)
5 users (show)

See Also:


Attachments
Proposed patch (2.37 KB, patch)
2007-10-25 13:23 EDT, 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 Raffi Khatchadourian CLA 2007-10-23 22:43:46 EDT
When given a search pattern for declarations of a local variable, the SearchEngine returns a match which is an instance of LocalVariableReferenceMatch instead of LocalVariableDeclarationMatch.
Comment 1 Frederic Fusier CLA 2007-10-25 05:50:16 EDT
Well spotted, this has happened since the beginning (ie. 3.0)!
I'm investigating...
Comment 2 Raffi Khatchadourian CLA 2007-10-25 10:18:31 EDT
(In reply to comment #1)
> Well spotted, this has happened since the beginning (ie. 3.0)!
> I'm investigating...
> 

Thanks! I didn't notice it until I started leverage information about the kinds of search matches returned. Look forward to hearing from you!
Comment 3 Frederic Fusier CLA 2007-10-25 13:23:32 EDT
Created attachment 81181 [details]
Proposed patch
Comment 4 Frederic Fusier CLA 2007-10-25 13:24:03 EDT
Released for 3.4M3 in HEAD stream.
Comment 5 David Audel CLA 2007-10-29 08:55:27 EDT
Verified for 3.4M3 using I20071029-0010 build.