I have to implement an external interface with a class generated from my DSL. One of the methods to implement has the following signature:
public void execute(SomeType<? extends OtherType> param1, ...) {...}
In the JvmModelInferrer, I mapped the appropriate elements of the DSL onto a method and added the parameters like this:
parameters += appRule.toParameter("param1", appRule.newTypeRef(SomeType, it.newTypeRef("? extends OtherType")))
It almost works, but generates a very strange output:
public void execute(final /*SomeType<? extends OtherType> */Object param1, ...) {...}
I suppose there could be additional settings to force the generator use the generic parameter I provided, but can't really find it.