Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » JMerge error when merging annotations on EnumLiteral
JMerge error when merging annotations on EnumLiteral [message #1006429] Thu, 31 January 2013 10:40 Go to next message
Martin Taal is currently offline Martin Taal
Messages: 5339
Registered: July 2009
Senior Member
Hi,
I am using (in Texo) jmerge to merge a generated source file with an existing one. It fails on an enum when merging a
generated source with an existing source. For me jmerge is a total blackbox.. :-(. So I hope someone can give some
guidance if the merge rules should be adapted to correctly support java annotations (on enum literals). Attached my
merge xml file which is the same as being used by EMF proper also.

Also attached the source file after merge with the error. The error is on line 24 where the name of the literal MYSTERY
is truncated to MYST.

I also attached the current source file and the generated code before merging.

I really hope someone can give me some guidance here...

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: JMerge error when merging annotations on EnumLiteral [message #1006496 is a reply to message #1006429] Thu, 31 January 2013 13:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26125
Registered: July 2009
Senior Member
Martin,

There are a lot of "freefloating" Javadoc comments that could be
problematic. I've also never tested real Java annoations on enum
literals, only on methods and classes. It's hard to say without a test
case I can run that reproduces the problem. Maybe you can make one and
open a bugzilla for me to investigate?


On 31/01/2013 11:40 AM, Martin Taal wrote:
> Hi,
> I am using (in Texo) jmerge to merge a generated source file with an
> existing one. It fails on an enum when merging a generated source with
> an existing source. For me jmerge is a total blackbox.. :-(. So I hope
> someone can give some guidance if the merge rules should be adapted to
> correctly support java annotations (on enum literals). Attached my
> merge xml file which is the same as being used by EMF proper also.
>
> Also attached the source file after merge with the error. The error is
> on line 24 where the name of the literal MYSTERY is truncated to MYST.
>
> I also attached the current source file and the generated code before
> merging.
>
> I really hope someone can give me some guidance here...
>
Re: JMerge error when merging annotations on EnumLiteral [message #1006512 is a reply to message #1006496] Thu, 31 January 2013 14:32 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5339
Registered: July 2009
Senior Member
Hi Ed,
Thanks, let me do that, I will create a self contained test case with jmerge and the 2 sources.

gr. Martin

On 01/31/2013 02:57 PM, Ed Merks wrote:
> Martin,
>
> There are a lot of "freefloating" Javadoc comments that could be problematic. I've also never tested real Java
> annoations on enum literals, only on methods and classes. It's hard to say without a test case I can run that
> reproduces the problem. Maybe you can make one and open a bugzilla for me to investigate?
>
>
> On 31/01/2013 11:40 AM, Martin Taal wrote:
>> Hi,
>> I am using (in Texo) jmerge to merge a generated source file with an existing one. It fails on an enum when merging a
>> generated source with an existing source. For me jmerge is a total blackbox.. :-(. So I hope someone can give some
>> guidance if the merge rules should be adapted to correctly support java annotations (on enum literals). Attached my
>> merge xml file which is the same as being used by EMF proper also.
>>
>> Also attached the source file after merge with the error. The error is on line 24 where the name of the literal
>> MYSTERY is truncated to MYST.
>>
>> I also attached the current source file and the generated code before merging.
>>
>> I really hope someone can give me some guidance here...
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[CDO] CDO/GMF compatibility
Next Topic:[CDO] CDOTransaction.close
Goto Forum:
  


Current Time: Mon Oct 20 09:48:30 GMT 2014

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

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