changeset 5532:b490b3dce2e2

7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo Reviewed-by: okutsu
author sla
date Fri, 30 Nov 2012 08:17:02 +0100
parents 6e5fb6026484
children 3521122a0281 d88d0eee8a9e
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 Dec 06 16:47:47 2012 +0400
+++ 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();