Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » genmodel is not created because of missing type argument
genmodel is not created because of missing type argument [message #899071] Mon, 30 July 2012 13:28 Go to next message
Robert Heinrich is currently offline Robert HeinrichFriend
Messages: 1
Registered: July 2012
Junior Member
Hi,

I created an EMF ecore model and the validation is sucessfully. But when I try to create a genmodel from the ecore model the following error message appears so that I cannot create the genmodel.
"The generic type associated with the 'Sample' classifier should have 1 type argument(s) to match the number of type parameter(s) of the classifier"

This error message is quite vacuous to me. I do not know which generic type is meant. There is no 'Sample' classifier in my model.
Can anybody please help me?

Best regards
Robert

[Updated on: Mon, 30 July 2012 13:30]

Report message to a moderator

Re: genmodel is not created because of missing type argument [message #899171 is a reply to message #899071] Mon, 30 July 2012 20:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Robert,

Comments below.

On 30/07/2012 3:28 PM, Robert Heinrich wrote:
> Hi,
>
> I created an EMF ecore model and the validation is sucessfully. But
> when ich try to create a genmodel from the ecore model the following
> error message appears so that I cannot create the genmodel.
> "The generic type associated with the 'Sample' classifier should have
> 1 type argument(s) to match the number of type parameter(s) of the
> classifier"
The *.genmodel is created though right? So the problem is when you open
the *.genmodel, it turns you to the error page. Along the bottom there
are tabs so you can go to the main page and generate more model away.
>
> This error message is quite vacuous to me. I do not know which generic
> type is meant.
If you validate your Ecore model in the Ecore editor, you can click on
the message and you'll be navigated to the object with the problem.
> There is no 'Sample' classifier in my model.
You inherited from another model? There must be a classifier with that
name. It will have one type parameter, and the place where you use it,
there should be a type argument. This error is the same as you'd get in
Java about using a raw type, e.g., when you use just List, instead of
List<SomeType>.
> Can anybody please help me?
It's hard to be completely accurate without more details from you. Best
you start with validating your Ecore model and at least removing all the
errors; this "raw type" problem is just a warning, not an error.
>
> Best regards
> Robert


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[xcore] refering to classes in non XCore ecore models
Next Topic:[CDO] Usage of property 'supportingAudits' in server config
Goto Forum:
  


Current Time: Tue Apr 23 09:28:37 GMT 2024

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

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

Back to the top