changeset 6196:55f8ddc2f9c6

7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo Reviewed-by: okutsu
author sla
date Fri, 30 Nov 2012 08:17:02 +0100
parents 7ccf93c60c4d
children e988de7465d4
files test/java/util/TimeZone/Bug6912560.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/util/TimeZone/Bug6912560.java	Thu Nov 29 14:43:46 2012 -0800
+++ b/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();