Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Only static inner classes?
Only static inner classes? [message #1774946] Sun, 22 October 2017 10:30 Go to next message
Stephane Galland is currently offline Stephane GallandFriend
Messages: 110
Registered: July 2014
Location: Belfort, France
Senior Member
Dear all.

In Xtend, we cannot declare an inner class without the static modifier.

What are the arguments for this decision, which is different than within the Java specifications?

All the best.
Stéphane.


Dr.habil Stéphane Galland.
Belfort-Montbéliard University of Technologie, France.

http://www.multiagent.fr/People:Galland_stephane
http://www.sarl.io
http://www.arakhne.org
Re: Only static inner classes? [message #1774948 is a reply to message #1774946] Sun, 22 October 2017 11:55 Go to previous messageGo to next message
Akos Kitta is currently offline Akos KittaFriend
Messages: 25
Registered: November 2015
Junior Member
Hi Stéphane,

I've found this on Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376399#c7

Cheers,
Akos
Re: Only static inner classes? [message #1774949 is a reply to message #1774946] Sun, 22 October 2017 12:27 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 560
Registered: July 2009
Location: Dortmund, Germany
Senior Member

I would second Jan's argumentation in Bug#376399. So far I don't think that Xtend needs this. We do not aim to rebuild all Java features, but rather hide complexity and leave out things for simplicity.
Re: Only static inner classes? [message #1774950 is a reply to message #1774949] Sun, 22 October 2017 13:17 Go to previous message
Stephane Galland is currently offline Stephane GallandFriend
Messages: 110
Registered: July 2014
Location: Belfort, France
Senior Member
Dear all.
Thank you for your pointers. The explanations are clear and make sense.
All the best.
Stéphane.


Dr.habil Stéphane Galland.
Belfort-Montbéliard University of Technologie, France.

http://www.multiagent.fr/People:Galland_stephane
http://www.sarl.io
http://www.arakhne.org
Previous Topic:Importing a Metamodel in XText 2.12.
Next Topic:DSL runtime workspace blocks at start waiting for non-existing .*._trace files to be refreshed
Goto Forum:
  


Current Time: Tue Jan 16 07:46:00 GMT 2018

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

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