7155168: java/util/TimeZone/Bug6912560.java: expected Asia/Tokyo

Reviewed-by: okutsu
This commit is contained in:
Staffan Larsen 2012-11-30 08:17:02 +01:00
parent dd42277862
commit c1126e3727

@ -40,6 +40,9 @@ public class Bug6912560 {
// 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();