Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363578

Summary: How to do statics?
Product: [Modeling] TMF Reporter: Peter Kriens <Peter.Kriens>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: moritz.eysholdt
Version: 2.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Peter Kriens CLA 2011-11-11 07:35:02 EST
It is not clear from the documentation how to do static. E.g. how to do a main program?

There are good reasons to not support statics but it would be nice if this was discussed in the documentation.

BTW, really interesting approach!
Comment 1 Moritz Eysholdt CLA 2011-11-11 09:00:23 EST
hi Peter,

I'd prefer code without static as well. However, to support java's "main" and integration with other frameworks, we'll add support for static methods and fields. See bug 363019 for more information.

*** This bug has been marked as a duplicate of bug 363019 ***