Bug 44170

Summary: ITypeHierarchy#getImplementingClasses bug?
Product: [Eclipse Project] JDT Reporter: Genady Beryozkin <eclipse>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Genady Beryozkin CLA 2003-10-04 06:03:07 EDT
I have two projects, where one project defines some interfaces, and the other
project implements them. All interfaces extend java.rmi.Remote.

I try to obtain all classes that implement java.rmi.Remote in the second project.

I create a type hierarchy of "java.rmi.Remote" restricted to the region that
includes the source folder of the second project.

So far so good.

Now I want to retrieve the the classes that implement the remote interface.
If I use #getImplementingClasses(project2.findType("java.rmi.Remote")) I don't
get any classes at all.

However, if I use #getAllSubtypes() I get all the classes I need + more classes
that are not in the defined region.

At least the first problem seems like a bug to me.

Genady
Comment 1 Jerome Lanneluc CLA 2003-10-06 04:50:10 EDT
Build number?
Comment 2 Genady Beryozkin CLA 2003-10-06 04:57:02 EDT
WSAD 5.1 trial. It says jdt core version is 2.1.1.
Comment 3 Jerome Lanneluc CLA 2004-05-10 09:31:41 EDT
I believe this is now fixed in HEAD. Please reopen if you have a test case 
that shows the problem.