Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ASTNode.findDeclaringNode() works for parameterized types?
ASTNode.findDeclaringNode() works for parameterized types? [message #649134] Mon, 17 January 2011 15:55 Go to next message
Eclipse UserFriend
If I had a generic class A<E> defined in my compilation unit, and somewhere in that compilation unit I had a field:

A<Integer> fieldName;

The method ASTNode.findDeclaringNode( IBinding) would recognize the type of this field as being declared in the compilation unit? That is, the fact that we parameterize the type doesn't affect the behaviour of the method?
Re: ASTNode.findDeclaringNode() works for parameterized types? [message #649148 is a reply to message #649134] Mon, 17 January 2011 17:14 Go to previous messageGo to next message
Eclipse UserFriend
This seems to work fine. Do you have an example where this doesn't work ?
If yes, please report a bug report against JDT/Core with steps to reproduce.

Thanks,

Olivier
Re: ASTNode.findDeclaringNode() works for parameterized types? [message #649185 is a reply to message #649134] Mon, 17 January 2011 23:09 Go to previous message
Eclipse UserFriend
No, I didn't detect any bugs.
Previous Topic:Newbie question on creating Web Service
Next Topic:Diff PackageExplorer and ProjectExplorer?
Goto Forum:
  


Current Time: Wed Jul 23 01:16:03 EDT 2025

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

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

Back to the top