[Acceleo 3.X] JMerge not used when generated code contains Java 5 annotations [message #755962] |
Thu, 10 November 2011 10:40  |
Sebastien GABEL Messages: 6 Registered: July 2009 Location: Toulouse |
Junior Member |
|
|
Hello,
I would like to enforce the possibilities offered by my generated code.
For this purpose, I already use the protected area mechanism that works fine.
Now, I would like to introduce the JMerge @generated tags but I'm facing a problem : my generated code contains Java 5 annotations.
My generated code is :
/**
* @generated
*/
@SimpleMapping(InputType="object1", OutputType="object2")
public boolean myMethod(Object pInput, Object pOutput) {
.....
}
During a generation, I get two warnings :
The first comes from emf codegen :
A problem was detected while parsing a Java file Line 43: Syntax error, annotations are only available if source level is 1.5
The second from acceleo :
There seem to be some errors in one of the file 'MyClass.java', therefore JMerge can not be used.
JMerge fails in this case and has no effect as indicated by the warnings. My project compliance settings are OK for the generated project.
How can I solve this JMerge problem in Acceleo ? Maybe something to do before launching the generation ? Any advice would be appreciated.
Thanks in advance,
Sebastien
[Updated on: Thu, 10 November 2011 10:40] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02396 seconds