race in VersionInfo.getInstance()

Description

ICU4J VersionInfo.getInstance() has

which will break singleton semantics when a race occurs.

Activity

Show:
TracBot
July 1, 2018, 10:09 AM
Trac Comment 3 by —2010-08-18T20:30:10.000Z

Not only "singleton semantics", but it actually could cause ConcurrentModificationException as well. With a simple multi-thread test case, I got -

Fixed

Assignee

Yoshito Umaoka

Reporter

Markus Scherer

Components

Labels

None

Reviewer

None

Priority

major

Time Needed

Hours

Fix versions