This fixes the problem of recursing infinitely when calling JavaType.getAllInvolvedRawTypes()
for a recursive type parameter declaration (e.g. class Example<T extends Example<T>>).
It also adds a new public API to conveniently traverse JavaType signatures
without the need to add chains of instanceof checks and manually handle how to traverse further.
This fixes the problem of recursing infinitely when calling
JavaType.getAllInvolvedRawTypes()
for a recursive type parameter declaration (e.g.class Example<T extends Example<T>>
). It also adds a new public API to conveniently traverseJavaType
signatures without the need to add chains ofinstanceof
checks and manually handle how to traverse further.Resolves: #1237