Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Why am I getting class ambiguity?(Model generation creates ambiguity with java.lang classes)
Why am I getting class ambiguity? [message #1240912] Fri, 07 February 2014 08:18 Go to next message
Ben Cox is currently offline Ben CoxFriend
Messages: 17
Registered: June 2012
Junior Member
I'm in the process of creating a model, using an Ecore. One of my EClasses is called 'System'. When I generate the model, the generated EObjectValidator and EFactory have compilation errors, saying that:

'The type System is ambiguous'

I notice that elsewhere in the model, System has been referred to by its fully-qualified name, to avoid ambiguity with java.lang.System. Why isn't it being fully-qualified here? Is this a bug, or is there a flag in the Ecore or GenModel that can turn it on?
Re: Why am I getting class ambiguity? [message #1240980 is a reply to message #1240912] Fri, 07 February 2014 09:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30688
Registered: July 2009
Senior Member
Ben,

It sounds like some kind of bug. Please open a bugzilla is a small
reproducible test case.

On 07/02/2014 9:18 AM, Ben Cox wrote:
> I'm in the process of creating a model, using an Ecore. One of my
> EClasses is called 'System'. When I generate the model, the generated
> EObjectValidator and EFactory have compilation errors, saying that:
>
> 'The type System is ambiguous'
>
> I notice that elsewhere in the model, System has been referred to by
> its fully-qualified name, to avoid ambiguity with java.lang.System.
> Why isn't it being fully-qualified here? Is this a bug, or is there a
> flag in the Ecore or GenModel that can turn it on?
Re: Why am I getting class ambiguity? [message #1241139 is a reply to message #1240980] Fri, 07 February 2014 14:37 Go to previous message
Ben Cox is currently offline Ben CoxFriend
Messages: 17
Registered: June 2012
Junior Member
Thanks, Ed. I was struggling to reproduce it simply, but then realised it only occurs when merging into pre-existing classes. I've created Bug 427668 for it, with a small Ecore attached.
Previous Topic:[CDO] CDOCommitInfo History for a particular user in CDO
Next Topic:how to create a CDO repository
Goto Forum:
  


Current Time: Tue Dec 10 23:43:02 GMT 2019

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

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

Back to the top