Bug 496503 - org.eclipse.jdt.core.ITypeHierarchy.getAllSuperInterfaces(IType) does not seem to consider interface hierarchy.
Summary: org.eclipse.jdt.core.ITypeHierarchy.getAllSuperInterfaces(IType) does not see...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: Macintosh Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-21 15:16 EDT by Raffi Khatchadourian CLA
Modified: 2022-10-12 05:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raffi Khatchadourian CLA 2016-06-21 15:16:58 EDT
Consider the following example:

interface I {}
class A implements I {}

getAllSuperInterfaces(A) would return I, which is correct. Now, consider this example:

interface I {}
class A implements I {}
class B extends A {}

getAllSuperInterfaces(B) would return I as well, which is also correct. Finally, consider the following example:

interface I {}
interface J extends I {}
class A implements J {}

getAllSuperInterfaces(A) seems to *only* return J, but, I would argue that I is also a super interface of A. Henceforth, getAllSuperInterfaces(A) should return both I and J.

-- Configuration Details --
Product: Eclipse 4.5.2.20160218-0600 (org.eclipse.epp.package.committers.product)
Installed Features:
 org.eclipse.jdt 3.11.2.v20160212-1500
Comment 1 Jay Arthanareeswaran CLA 2016-06-28 05:58:29 EDT
I agree. This is what the Javadoc of ITypeHierarchy.getAllSuperInterfaces(IType) says:


 * Returns all resolved superinterfaces (direct and indirect) of the given type.
 * If the given type is a class, this includes all superinterfaces of all superclasses.
 * An empty array is returned if there are no resolved superinterfaces for the
 * given type.

Will take a look little later.
Comment 2 Manoj N Palat CLA 2018-05-21 06:07:08 EDT
Bulk move out of 4.8
Comment 3 Eclipse Genie CLA 2020-08-11 10:51:33 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Jay Arthanareeswaran CLA 2020-08-12 01:36:01 EDT
I doubt I can get to this in foreseeable future. Moving out of my list.
Comment 5 Eclipse Genie CLA 2022-10-12 05:34:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.