JavaMemoryModel: Bugs in Tiger beta 1

From: Doron Rajwan (
Date: Tue Mar 09 2004 - 15:18:43 EST

>From browsing the sources of Tiger beta 1 I see lot of
code that breaks the JMM. Should I use the bug parade
for that?

For example, from java.util.Scanner:

    private static Pattern boolPattern;
    private static final String BOOLEAN_PATTERN =
    private static Pattern boolPattern() {
        if (boolPattern == null)
            boolPattern =
        return boolPattern;

This code must be fixed: boolPattern must be volatile.


Doron Rajwan,

JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:59 EDT