Skip to content

Support for ResolvableType.getType().getTypeName() on Java 8 [SPR-16535] #21078

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-16535 and commented

Example test that fails:

assertThat(ResolvableType.forClassWithGenerics(Consumer.class, String.class)
		.getType().getTypeName()).isEqualTo(Consumer.class.getName());

I think it just passes the type name property to toString() and that isn't very helpful in this case.

It would be nice for the type name to be the same as the raw type (the same as if I have defined a class that implements Consumer<String> and printed the type name of its interfaces.


Affects: 4.3.14

Referenced from: commits 6663d0f, 901d48c

Backported to: 4.3.15

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions