I was wrong that you can't test drive generic types in Java. There is a
getGenericType and
getDeclaredAnnotations. More information, "
Reflecting generics". It is a pain though with the methods returning an interface that has to be cast up and the implementations live in the sun.* package.
No comments:
Post a Comment