FasterXML / java-classmate

Library for introspecting generic type information of types, member/static methods, fields. Especially useful for POJO/Bean introspection.
http://fasterxml.com
Apache License 2.0
258 stars 42 forks source link

ResolvedType.getAllTypes() returns parent, this, and interfaces #56

Closed krzysiekbielicki closed 11 months ago

krzysiekbielicki commented 3 years ago

Convenience method for the full set of types for a type (fixes #50)

cowtowncoder commented 3 years ago

@krzysiekbielicki Thank you for contributing this! I hope to check out PR soon but have a few things queued up -- but I wanted to add a note to say that I saw this and will try to get to it ASAP.

@ljnelson WDYT?

ljnelson commented 3 years ago

I'll let you folks figure it out. I did my own thing over here. I opted to always include the full set of types, i.e. not just the parent but the grandparent and so on. See: https://microbean.github.io/microbean-type/apidocs/org/microbean/type/Types.html#toTypes(java.lang.reflect.Type)

cowtowncoder commented 3 years ago

Ah, right. So as implemented the method does not include types recursively, but only immediate parent. So yes, that should be added; at least I don't see as much value in something that only includes immediate super types.