Does anyone know how to generate the following generic method declaration using CodeModel?
public <T> T getValue(Class<T> clazz){...}
usage:
ValueType value = getValue(ValueType.class);
Seems not to be handled by the existing implementation.
I know I could handle the code as follows, but it requires a cast:
public Object getValue(Class class){...}
usage:
ValueType value = (ValueType)getValue(ValueType.class);
Obviously, this is a bit messy because of the cast.