Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » EMF code generation error (bug report)
EMF code generation error (bug report) [message #378370] Thu, 02 November 2006 11:10 Go to next message
Eclipse User
Originally posted by: vkrastev.gmx.de

Hi All,

we have following problem(bug) with the EMF code generation tool.

I will explain the process and then the error.

We make new EMF project from our ecore model. Then from the generate model
(ourmodel.genmodel) we generate the Model Code. And we have the following
syntax errors in the generated code.

In our ecore model there are variable names and method names which exceed
the maximum lenght

of the screen. The length of the whole line is 74 characters it will be
split by generation in the position 57 with new line character and the
remaining 17 characters are put on the next line.

Example:

it should be like this:

private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;

but after the code generation we have the following:

private EDataType xsDbuildInPrimitiveTypeNamesObject

EdataType = null ;

That means now we have two independent lines code and we get after compile
the syntax error:

"on token "EDataType", delete this token"

We dont want to make changes on our model in order to avoid this error.

Is it a bug? Can you fix it?

We suppose it is an error in the JET code generation.

Please advise solution.

Thanks in advance.

Regards

V.Krastev
Re: EMF code generation error (bug report) [message #378371 is a reply to message #378370] Thu, 02 November 2006 11:46 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
Vili,

This newsgroup is for discussion about the modeling project over all.
You should use the EMF newsgroup for questions specifically about EMF,
which you did, but you posted two notes independently. If you must post
the same issue to multiple newsgroup (which is not needed in this case),
you should do it with a single posting to multiple groups so that an
answer on any one group will appear in all groups.


Vili wrote:
> Hi All,
>
> we have following problem(bug) with the EMF code generation tool.
>
> I will explain the process and then the error.
>
> We make new EMF project from our ecore model. Then from the generate model
> (ourmodel.genmodel) we generate the Model Code. And we have the following
> syntax errors in the generated code.
>
> In our ecore model there are variable names and method names which exceed
> the maximum lenght
>
> of the screen. The length of the whole line is 74 characters it will be
> split by generation in the position 57 with new line character and the
> remaining 17 characters are put on the next line.
>
> Example:
>
> it should be like this:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;
>
> but after the code generation we have the following:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObject
>
> EdataType = null ;
>
> That means now we have two independent lines code and we get after compile
> the syntax error:
>
> "on token "EDataType", delete this token"
>
> We dont want to make changes on our model in order to avoid this error.
>
> Is it a bug? Can you fix it?
>
> We suppose it is an error in the JET code generation.
>
> Please advise solution.
>
> Thanks in advance.
>
> Regards
>
> V.Krastev
>
>
>
Re: EMF code generation error (bug report) [message #582364 is a reply to message #378370] Thu, 02 November 2006 11:46 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
Vili,

This newsgroup is for discussion about the modeling project over all.
You should use the EMF newsgroup for questions specifically about EMF,
which you did, but you posted two notes independently. If you must post
the same issue to multiple newsgroup (which is not needed in this case),
you should do it with a single posting to multiple groups so that an
answer on any one group will appear in all groups.


Vili wrote:
> Hi All,
>
> we have following problem(bug) with the EMF code generation tool.
>
> I will explain the process and then the error.
>
> We make new EMF project from our ecore model. Then from the generate model
> (ourmodel.genmodel) we generate the Model Code. And we have the following
> syntax errors in the generated code.
>
> In our ecore model there are variable names and method names which exceed
> the maximum lenght
>
> of the screen. The length of the whole line is 74 characters it will be
> split by generation in the position 57 with new line character and the
> remaining 17 characters are put on the next line.
>
> Example:
>
> it should be like this:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;
>
> but after the code generation we have the following:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObject
>
> EdataType = null ;
>
> That means now we have two independent lines code and we get after compile
> the syntax error:
>
> "on token "EDataType", delete this token"
>
> We dont want to make changes on our model in order to avoid this error.
>
> Is it a bug? Can you fix it?
>
> We suppose it is an error in the JET code generation.
>
> Please advise solution.
>
> Thanks in advance.
>
> Regards
>
> V.Krastev
>
>
>
Previous Topic:EMF code generation error (bug report)
Next Topic:MoDisco: a new component under eclipse.modeling.gmt
Goto Forum:
  


Current Time: Thu Oct 23 00:40:21 GMT 2014

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

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