Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 96763

Summary: [1.5][search] Search for method declarations does not find overridden method with different signature
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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