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!

0
3 comments

Looks like a bug. Could you file a JIRA issue?

0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.