Skip to main content


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 20:55 Go to next message
Joan Robert is currently offline Joan RobertFriend
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 22:14 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
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] Tue, 18 January 2011 04:09 Go to previous message
Arlindo is currently offline ArlindoFriend
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: Sat Apr 27 00:11:17 GMT 2024

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

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

Back to the top