Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Joan Robert is currently offline Joan Robert
Messages: 16
Registered: December 2010
Junior Member
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
Olivier Thomann is currently offline Olivier Thomann
Messages: 518
Registered: July 2009
Senior Member
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
Arlindo is currently offline Arlindo
Messages: 33
Registered: August 2009
Member
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: Thu Jul 31 13:39:40 EDT 2014

Powered by FUDForum. Page generated in 0.01411 seconds