Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] basicSet method generated multiple times
[XCore] basicSet method generated multiple times [message #1020678] Mon, 18 March 2013 17:48 Go to next message
Martin  odloucký is currently offline Martin odlouckýFriend
Messages: 49
Registered: July 2010
Member
Hello,

I noticed this strange behavior when using XCore. I have simple project named "base" with base.xcore.

package base

class MyClass {
	String name
}


Another project called "list" depends on base and contains list.xcore

package list

import base.MyClass 

class List {
  refers Item[] items opposite list
}

class Item {
  refers List list opposite items
}

class Multi extends MyClass, Item {}


The generated class MutliImpl contains two (sometimes even five or more) implementations of basicSetList and the Java compiler does not like it very much.

I am attaching both projects in zip file. This seems like a bug to me.
  • Attachment: project.zip
    (Size: 52.77KB, Downloaded 41 times)
Re: [XCore] basicSet method generated multiple times [message #1020901 is a reply to message #1020678] Tue, 19 March 2013 06:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26231
Registered: July 2009
Senior Member
Martin,

This sounds familiar and isn't how it's behaving with the M6 level of
the soon-to-be publish build.


On 18/03/2013 6:48 PM, Martin odloucký wrote:
> Hello,
>
> I noticed this strange behavior when using XCore. I have simple project named "base" with base.xcore.
>
>
> package base
>
> class MyClass {
> String name
> }
>
>
> Another project called "list" depends on base and contains list.xcore
>
>
> package list
>
> import base.MyClass
>
> class List {
> refers Item[] items opposite list
> }
>
> class Item {
> refers List list opposite items
> }
>
> class Multi extends MyClass, Item {}
>
>
> The generated class MutliImpl contains two (sometimes even five or more) implementations of basicSetList and the Java compiler does not like it very much.
>
> I am attaching both projects in zip file. This seems like a bug to me.
Re: [XCore] basicSet method generated multiple times [message #1021262 is a reply to message #1020901] Tue, 19 March 2013 18:52 Go to previous message
Martin  odloucký is currently offline Martin odlouckýFriend
Messages: 49
Registered: July 2010
Member
Well, it seems I really need to start using cutting edge builds. I installed the M6 release and my problem is gone. Thanks Ed!
Previous Topic:Graphical view for large amounts of EMF models or one BIG model
Next Topic:[CDO] Start own bundle in CDO Server
Goto Forum:
  


Current Time: Thu Nov 27 12:08:26 GMT 2014

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

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