Hi,
I try to upgrade our plugins (highly based on xcore) to Eclipse Oxygen. I notice a change of behaviour on the EMF code generation that causes problem. After few investigation, I realize the way XCore parse the meta-model (.xcore) has troubles with comments with /* */ format at the beginning of the .xcore file. Indeed if I have the following header:
/*
* Few Comments
*/
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")
package test
class Test{
}
The .xcore is inconsistent and is unable to parse properly the @GenModel instructions.
If I remove the text in the header, everything is fine.
/*
*
*/
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")
package test
class Test{
}
Also, I checked if I use // comment symbol and it works:
//
// Few Comments
//
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")
package test
class Test{
}
I use Oxygen latest version.
Are you aware of this issue? I can raise a bug as your convenience.
Regent ;-)