Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JDT AST question: why does EnumConstantDeclaration uses an anonymous class?
JDT AST question: why does EnumConstantDeclaration uses an anonymous class? [message #250502] Tue, 08 January 2008 09:46 Go to next message
Zviki Cohen is currently offline Zviki CohenFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

Just wondering if people who were involved in the development of the Java
AST can shed some light here. The EnumConstantDeclaration is using an
anonymous class to represent the actual class body that may accompany the
constant itself. This seems like a solution that works, but it's not
exactly aligned with the Java languages spec.

Are there any plans to fix it?

Thanks.
Re: JDT AST question: why does EnumConstantDeclaration uses an anonymous class? [message #250509 is a reply to message #250502] Tue, 08 January 2008 15:10 Go to previous message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
zvikico a écrit :
> Just wondering if people who were involved in the development of the
> Java AST can shed some light here. The EnumConstantDeclaration is using
> an anonymous class to represent the actual class body that may accompany
> the constant itself. This seems like a solution that works, but it's not
> exactly aligned with the Java languages spec.
> Are there any plans to fix it?
Why are you saying that this doesn't align with the specs. The body of
an enum constant can actually be seen as a anonymous class of the type
of the enum class.
--
Olivier
Previous Topic:AST for other languages
Next Topic:IWorkbenchPage.getAggregateWorkingSet() has no visibility into JDT's WorkingSetModel.getAllWorkingSe
Goto Forum:
  


Current Time: Sat Jul 27 18:18:22 GMT 2024

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

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

Back to the top