Bug 38568 - Search for method declarations fooled by array types
Summary: Search for method declarations fooled by array types
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-06 06:10 EDT by Philipe Mulet CLA
Modified: 2003-08-28 04:44 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 Philipe Mulet CLA 2003-06-06 06:10:58 EDT
Build 20030605

When searching for declarations of Main.bind(String, String[]) (batch compiler) 
inside JDT/Core, it should find 5 occurrences, and currently also finds 
declarations of bind(String, String) (note second arg isn't of array type).
Comment 1 Jerome Lanneluc CLA 2003-07-15 08:45:04 EDT
MethodPattern.matchLevel(AstNode, boolean) didn't check that the simple 
parameter names matched in the non-resolve case.

Fixed and added regression test JavaSearchTests.testMethodDeclaration()
Comment 2 David Audel CLA 2003-08-28 04:44:09 EDT
Verified.