Freemarker integration improvement request (generics problem)

Hi guys,

suppose you have two classes

public class A extends B<ConcreteClass>


with B being

public class B<T extends AbstractClass>{
     private T t;


     public T getT();

}

Now in your ftl:

<#-- @ftlvariable name="a" type="A"-->

${a.t} -> returns AbstractClass and not ConcreteClass.

E.g. freemarker integration will return the supertype (AbstractClass), not the concrete type (ConcreteClass).

Is there something I'm missing or is this feature simply not supported?

Cheers!

Please sign in to leave a comment.