Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsgenmodel is not created because of missing type argument
https://www.eclipse.org/forums/index.php/mv/msg/368728/899071/#msg_899071
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]]>Robert Heinrich2012-07-30T13:28:28-00:00Re: genmodel is not created because of missing type argument
https://www.eclipse.org/forums/index.php/mv/msg/368728/899171/#msg_899171
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 Merks2012-07-30T20:36:11-00:00