7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo
authorsla
Fri, 30 Nov 2012 08:17:02 +0100
changeset 14689 330461c27ccc
parent 14688 5a6b183a143d
child 14690 ee8867eb1cdb
7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo Reviewed-by: okutsu
jdk/test/java/util/TimeZone/Bug6912560.java
--- a/jdk/test/java/util/TimeZone/Bug6912560.java	Thu Nov 29 14:43:46 2012 -0800
+++ b/jdk/test/java/util/TimeZone/Bug6912560.java	Fri Nov 30 08:17:02 2012 +0100
@@ -40,6 +40,9 @@
         // set the user.timezone property
         String tzname = "Asia/Tokyo";
         System.setProperty("user.timezone", tzname);
+        // make sure the timezone will be initialized by
+        // the next call to TimeZone.getDefault()
+        TimeZone.setDefault(null);
 
         System.setSecurityManager(new SecurityManager());
         TimeZone tz = TimeZone.getDefault();