Ineffective synchronization in StandardTypeConverter constructor [SPR-14465] #19034
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
Juergen Hoeller opened SPR-14465 and commented
StandardTypeConverter
's default constructor usessynchronized (this)
for initializing a shared staticDefaultConversionService
. However, in a constructor, synchronization onthis
is effectively a no-op. Let's rather simply use avolatile
variable there.Affects: 3.2.17, 4.2.7, 4.3.1
Issue Links:
Referenced from: commits 0065a16, 97d73eb, 6d91d54, cb64dd1
Backported to: 4.2.8, 3.2.18
The text was updated successfully, but these errors were encountered: