Skip to content

Ineffective synchronization in StandardTypeConverter constructor [SPR-14465] #19034

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14465 and commented

StandardTypeConverter's default constructor uses synchronized (this) for initializing a shared static DefaultConversionService. However, in a constructor, synchronization on this is effectively a no-op. Let's rather simply use a volatile 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

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