Type parameters for Java generics should be accessible by reflection.
However, Javassist does not provide direct support for adding the type
information needed for that reflection capability, which is called
a generic signature. It must be added to a class file by using the
lower-level API of Javassist.
The generic signatures are also used by a compiler (and an editor) when only a class file is available and a source file is not.
|