Bug 87778

Summary: [search] doesn't find all declarations of method with covariant return type
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-03-11 10:39:51 EST
I20050308-1510

Search doesn't find all declarations of method with covariant return type:
Search for decl. of A#covariant() in Project -> B#covariant() is not found.

class A {
    A stable() { return null; }
    A covariant() { return null; }
}

class B extends A {
    A stable() { return null; }
    B covariant() { return null; }
}
Comment 1 Frederic Fusier CLA 2005-03-11 12:57:34 EST
Regression introduced while fixing bug 75642...
Comment 2 Frederic Fusier CLA 2005-03-14 09:47:31 EST
Fixed while implementing bug 80264.

[jdt-core-internal]
Change done in MethodLocator.match(MethodDeclaration,MatchingNodeSet).
No test case added, those of bug 80264 also verify this bug...
Comment 3 Olivier Thomann CLA 2005-03-30 16:34:29 EST
Verified in I20050330-0500