Skip to content

ResolvableType.isAssignableFrom() failure for raw types [SPR-11414] #16041

@spring-projects-issues

Description

@spring-projects-issues

Jose Luis Martin opened SPR-11414 and commented

Hi all,

When upgrading to Spring 4.0.0 I noticed failures when autowiring raw types.

I think that should be expected that if some Service<?> service become autowired then a raw type declaration (Service service) should become autowired too.

I guess that it could be fixed checking for raw types in ResolvableType.getGenerics() and returning wildcards for all parameter types.

A proposal fix is in https://github.com/chelu/spring-framework/tree/resolvable-raw-types

Best regards,

Jose


Affects: 4.0 GA

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions