harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r568966 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java
Date Thu, 23 Aug 2007 13:19:28 GMT
Author: tellison
Date: Thu Aug 23 06:19:27 2007
New Revision: 568966

URL: http://svn.apache.org/viewvc?rev=568966&view=rev
Log:
Fix for HARMONY-4670 (Locale.getAvailableLocales() isn't thread safe)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java?rev=568966&r1=568965&r2=568966&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java Thu Aug
23 06:19:27 2007
@@ -46,7 +46,7 @@
 	
 	private static final long serialVersionUID = 9149081749638150636L;
 
-	private static Locale[] availableLocales;
+	private static volatile Locale[] availableLocales;
 
 	// Initialize a default which is used during static
 	// initialization of the default for the platform.



Mime
View raw message