Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » TypeDeclaration.getSuperInterfaces not returning interfaces
TypeDeclaration.getSuperInterfaces not returning interfaces [message #243133] Mon, 23 April 2007 13:53 Go to next message
Eclipse UserFriend
Originally posted by: kajoanet.execulink.com

Hey guys,

I'm using

List<Type> interfaces = node.superInterfaceTypes();

where node is a TypeDeclaration node. The list that returns does not
contain the interfaces that it should. It only returns the super class of
the class.
I don't think I'm doing anything wrong but a little help would be
appreciated.

Kailey
Re: TypeDeclaration.getSuperInterfaces not returning interfaces [message #243160 is a reply to message #243133] Mon, 23 April 2007 21:21 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Kailey Joanette a écrit :
> List<Type> interfaces = node.superInterfaceTypes();
>
> where node is a TypeDeclaration node. The list that returns does not
> contain the interfaces that it should. It only returns the super class of
> the class.
> I don't think I'm doing anything wrong but a little help would be
> appreciated.
Please provide the build id and a test case in order to investigate.
If you believe your code is right, you can open a bug report with the
requested information against JDT/Core.
--
Olivier
Re: TypeDeclaration.getSuperInterfaces not returning interfaces [message #243175 is a reply to message #243160] Tue, 24 April 2007 13:05 Go to previous message
Eclipse UserFriend
Originally posted by: kajoanet.execulink.com

List<Type> interfaces = node.superInterfaceTypes();
for ( int i = 0; i < interfaces.size(); i++ )

Nothing fancy just iterating through the list of interfaces. But instead of
getting a list of interfaces I only get the super class.
The class I run it on has the following signature:

class MyClass extends MySuperClass implements Runnable

I am never able to get the Runnable interface. The list only contains
MySuperClass

The JDT Core is 3.2.3v

Kailey

I don't ever get the runnable interface in the list.
"Olivier Thomann" <olivier_thomann@ca.ibm.com> wrote in message
news:462D2361.9010100@ca.ibm.com...
> Kailey Joanette a
Previous Topic:Eclipse crashing and ignoring User libraries
Next Topic:getTypeSignature() does not contain generic information
Goto Forum:
  


Current Time: Sat Jul 13 19:00:58 GMT 2024

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top