Bug 5794 - Polymorphic search doesn't work in dependent projects
Summary: Polymorphic search doesn't work in dependent projects
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-12 10:27 EST by Jerome Lanneluc CLA
Modified: 2002-01-11 09:22 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 Jerome Lanneluc CLA 2001-11-12 10:27:29 EST
Build 20011109

1. Create java project P1.
2. Add interface I with method foo()
3. Add class X that implements I and defines foo()
4. Create java project P2 that requires P1 on its build path
5. Create class Y in P2 that uses I.foo()
6. Select X.foo() and search for references
Observe: None is found
Comment 1 Jerome Lanneluc CLA 2001-11-12 10:38:57 EST
Fixed by creating a Java search scope with all package fragment roots of the 
current project when resolving the super types of the declaring type.