Skip to content

ResolvableType.forRawClass fails isAssignable against TypeVariable #23321

@philwebb

Description

@philwebb

A ResolvableType created using forRawClass incorrectly returns false when isAssignable is called against a type backed by a TypeVariable.

E.g.: Given the following type:

public static class ExtendedList extends List<CharSequence> {
}

This code will result in false when it should be true:

ResolvableType.forRawClass(CharSequence.class).isAssignableFrom(ResolvableType.forClass(ExtendsList.class).as(List.class).getGeneric());

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions