Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] JMerge default compiler compliance level
[Acceleo] JMerge default compiler compliance level [message #710039] Thu, 04 August 2011 16:01 Go to next message
stuart mackey is currently offline stuart mackeyFriend
Messages: 7
Registered: July 2009
Junior Member
I use Acceleo to generate code to a location outside the eclipse workspace. When regenerating code to that location I get JMerge syntax errors if the previously generated code contains Java 1.5 features like for-each loops or annotations.

I don't see any way to specify a java compiler compliance level for Acceleo to pass on to JMerge. And the default ASTFacadeHelper that Acceleo creates (in JMergeUtil) seems to end up with 1.4 as the default java compiler compliance level even though I have 1.6 set in Eclipse.
Re: [Acceleo] JMerge default compiler compliance level [message #710604 is a reply to message #710039] Fri, 05 August 2011 07:59 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1639
Registered: July 2009
Senior Member
Hi,

We have never observed this directly, and yet we're using Java 5 constructs (the "launcher" class we generate aside the "main" modules is one of these cases).

Are you sure you haven't set a project-specific setting for the compliance level of the project in which you generate your code? It is possible that JMerge takes this setting into account. (You can check this by right-clicking the project, then going to "Java Compiler".)

Laurent Goubet
Obeo
Previous Topic:[acceleo] mtl and emtl, what is the difference?
Next Topic:multiple packages problem
Goto Forum:
  


Current Time: Mon Dec 22 10:07:51 GMT 2014

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

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