Skip to content

GenericTypeResolver returns EmptyType #34328

Closed
@cagliostro92

Description

@cagliostro92

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 that resolvedTypeArgument != ResolvableType.NONE, invoking this method still results in a ResolvableType.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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions