Skip to content

Conversation

@Luc-Veldhuis
Copy link

Attempt at getting a converter working from ResolvedType -> java.lang.reflect.Type
However, this required me to create a custom implementation for ParameterizedType and GenericArrayType, which is not so great :/

If anybody has any suggestions, I would be glad to hear them!

@Luc-Veldhuis Luc-Veldhuis changed the title Draft: Issue#69 | Add ResolvedTypeMapper to convert ResolvedType into Type Draft: Issue #69 | Add ResolvedTypeMapper to convert ResolvedType into Type Aug 26, 2025
@cowtowncoder
Copy link
Member

Makes sense overall. Not sure what to think TBH, but would be willing to merge in in some form.

@garretwilson WDYT?


/**
* Utility for converting a {@link ResolvedType} into a standard Java {@link Type}
* that can be used with the reflection API.
Copy link
Member

@cowtowncoder cowtowncoder Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably list specific Types produced (GenericArrayType, ParameterizedType).

And also, without generics, Classes too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants