Bug 87778 - [search] doesn't find all declarations of method with covariant return type
Summary: [search] doesn't find all declarations of method with covariant return type
Status: VERIFIED 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 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 10:39 EST by Markus Keller CLA
Modified: 2005-03-30 16:34 EST (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-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