Bug 44170 - ITypeHierarchy#getImplementingClasses bug?
Summary: ITypeHierarchy#getImplementingClasses bug?
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-04 06:03 EDT by Genady Beryozkin CLA
Modified: 2004-05-10 09:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.