Closed GoogleCodeExporter closed 8 years ago
Look again. 'instance' is declared volatile:
private static volatile Validator instance = null;
The double-check pattern work fine when the 'volatile' modifier is specified,
as long as you are using JDK 1.5 or later. (JDK 1.5 introduced a new memory
model that made this work.)
No fix is necessary. Closing.
Original comment by kevin.w.wall@gmail.com
on 23 Jan 2014 at 6:55
Original issue reported on code.google.com by
eamonn.w...@gmail.com
on 26 Nov 2013 at 7:52