GenericTypeResolver returns EmptyType #34328
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
After upgrading from spring-core 6.2.0 to 6.2.2, a new bug has surfaced. The method org.springframework.core.GenericTypeResolver#resolveType now returns
org.springframework.core.ResolvableType.EmptyType
, which is not resolvable by the underlying Jackson library.I observed that the issue arises because the method
resolveType()
is being called at this location. It's unclear why this decision was made, but it seems counterintuitive. After checking thatresolvedTypeArgument != ResolvableType.NONE
, invoking this method still results in aResolvableType.NONE
instance being returned.If you can provide guidance on this, I would be happy to contribute. Otherwise, thank you in advance for your collaboration!
demo.zip
The text was updated successfully, but these errors were encountered: