Skip to content

Regression: GenericTypeResolver returns null for partially resolvable type arguments [SPR-11763] #16385

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11763 and commented

Assume the following types:

interface Repository<T, ID extends Serializable> {}

interface IdFixingRepository<T> extends Repository<T, Long> {}

Trying to resolve the type arguments of IdFixingRepository using GenericTypeResolver returns null on Spring 4, works fine with latest 3.2.8. The test below fails starting with version 4.0.

asserNotNull(GenericTypeResolver.resolveTypeArguments(IdFixingRepository.class, Repository.class));

Affects: 4.0.4

Issue Links:

Referenced from: commits bea34ea, fccec21

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions