Skip to content

Duplicate entries in ResolvableType cache [SPR-12275] #16880

@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-12275 and commented

While doing some investigations on #16021 we discovered that the ResolvableType internal cache was holding a lot of duplicates for simple types (i.e. String, Integer, etc).

It turns out that we are using too much metadata to compute the key when the class has no generic information. so setFoo(String foo) and setBar(String bar) would result in two entries in the cache because the TypeProvider is different.


Affects: 4.0.7, 4.1 GA

Issue Links:

Backported to: 4.0.8

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