Duplicate entries in ResolvableType cache [SPR-12275] #16880
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
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)
andsetBar(String bar)
would result in two entries in the cache because theTypeProvider
is different.Affects: 4.0.7, 4.1 GA
Issue Links:
Backported to: 4.0.8
The text was updated successfully, but these errors were encountered: