Revision: 6917 Author: [email protected] Date: Mon Nov 16 11:37:20 2009 Log: Fixes a race condition creating StandardGeneratorContext's diskCache.
Review by: bob (virtual) http://code.google.com/p/google-web-toolkit/source/detail?r=6917 Modified: /trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java ======================================= --- /trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java Wed Nov 11 16:03:42 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java Mon Nov 16 11:37:20 2009 @@ -202,7 +202,7 @@ } } - private static DiskCache diskCache; + private static DiskCache diskCache = new DiskCache(); private final ArtifactSet allGeneratedArtifacts; @@ -242,9 +242,6 @@ this.genDir = genDir; this.generatorResourcesDir = generatorResourcesDir; this.allGeneratedArtifacts = allGeneratedArtifacts; - if (diskCache == null) { - diskCache = new DiskCache(); - } } /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
