There should be an easy way to obtain all JavaClasses that are involved in composing a generic type signature.
E.g.
class SomeClass {
Map<? super String, ? extends Serializable> method() {..}
}
Then there should be some API to derive the set of classes [Map, String, Serializable] from method.getReturnType(). We already have some logic like this to calculate the dependencies of a class, since all these classes are also dependencies of the generic return type.
Open question: How should this method be named and where should it live? Should it be something like
JavaType.getRawTypesInvolvedInSignature()
? What would be a good name for this?
There should be an easy way to obtain all
JavaClassesthat are involved in composing a generic type signature.E.g.
Then there should be some API to derive the set of classes
[Map, String, Serializable]frommethod.getReturnType(). We already have some logic like this to calculate the dependencies of a class, since all these classes are also dependencies of the generic return type.Open question: How should this method be named and where should it live? Should it be something like
? What would be a good name for this?