Skip to main content



      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 04:46 Go to next message
Eclipse UserFriend
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 10:10 Go to previous message
Eclipse UserFriend
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: Fri May 09 15:02:02 EDT 2025

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

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

Back to the top