Bug 96763 - [1.5][search] Search for method declarations does not find overridden method with different signature
Summary: [1.5][search] Search for method declarations does not find overridden method ...
Status: CLOSED 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 RC2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 06:34 EDT by Markus Keller CLA
Modified: 2005-06-10 09:14 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 Markus Keller CLA 2005-05-26 06:34:54 EDT
N20050526-0010

Example from bug 79990:
class X<T> {
    public void method(Number num) {}
    public void other(T t) {}
}
class Y extends X<Number> {
    public void method(Number num) {}
    public void other(Number t) {}
}

Search for declarations of Y#other(Number)
=> X#other(T) is not found.

When searching for declarations of Y#method(Number), X#method(Number) is found.
Comment 1 Philipe Mulet CLA 2005-06-07 04:15:50 EDT
+1 for RC2
Comment 2 Frederic Fusier CLA 2005-06-08 12:56:57 EDT
Fixed and released in HEAD.

Search now finds super method declaration while starting search from overridden
method.

|jdt-core internal]
See patch for changes
Test cases added in JavaSearchBugsTests
Comment 3 Olivier Thomann CLA 2005-06-09 09:18:57 EDT
Verified in N20050609-0010
Comment 4 Jerome Lanneluc CLA 2005-06-10 09:14:11 EDT
Verified in I20050610-0010