generic arguments to eOperations [message #415323] |
Wed, 12 December 2007 13:17 |
Eclipse User |
|
|
|
Originally posted by: jaehemail-eclipse.yahoo.co.uk
Hi,
I ran into a problem while trying to reload one of my models - after some
investigation I found that trying to generate a model from the following
java code(in a project on its own) just didn't work. The problem is
generics in the signature for an eOperation. While trying to generate a
model, or reload, the following error is reported:
The type must be specified for 'IOp.op(values)'
code:
package test.emf.problem;
import java.util.List;
/**
* @model
*/
public interface IOp
{
/**
* @model
*/
void op(List<Integer> values);
}
by specifying the parameters for the operation with '@model
parameters="java.util.List"' the model does generate but the generated
implementation just has the vanilla List argument (no parameterised type).
Are there plans to recognise parameterised types any time soon and is
there a way to have it generate the correct implementation signature at
present?
Any help appreciated,
Jae.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05481 seconds