< prev index next >

test/jdk/sun/util/calendar/zi/TestZoneInfo310.java

Print this page
rev 55760 : [mq]: 8212970

*** 172,184 **** ZoneInfoOld ziOLD = (ZoneInfoOld)ZoneInfoOld.getTimeZone(zid); /* * Temporary ignoring the failing TimeZones which are having zone * rules defined till year 2037 and/or above and have negative DST * save time in IANA tzdata. This bug is tracked via JDK-8223388. */ ! if (zid.equals("Africa/Casablanca") || zid.equals("Africa/El_Aaiun") ! || zid.equals("Asia/Tehran") || zid.equals("Iran")) { continue; } if (! zi.equalsTo(ziOLD)) { System.out.println(zi.diffsTo(ziOLD)); throw new RuntimeException(" FAILED: " + zid); --- 172,204 ---- ZoneInfoOld ziOLD = (ZoneInfoOld)ZoneInfoOld.getTimeZone(zid); /* * Temporary ignoring the failing TimeZones which are having zone * rules defined till year 2037 and/or above and have negative DST * save time in IANA tzdata. This bug is tracked via JDK-8223388. + * + * These are the zones/rules that employ negative DST in vanguard + * format (as of 2019a): + * + * - Rule "Eire" + * - Rule "Morocco" + * - Rule "Namibia" + * - Zone "Europe/Prague" + * + * Tehran/Iran rule has rules beyond 2037, in which javazic assumes + * to be the last year. Thus javazic's rule is based on year 2037 + * (Mar 20th/Sep 20th are the cutover dates), while the real rule + * has year 2087 where Mar 21st/Sep 21st are the cutover dates. */ ! if (zid.equals("Africa/Casablanca") || // uses "Morocco" rule ! zid.equals("Africa/El_Aaiun") || // uses "Morocco" rule ! zid.equals("Africa/Windhoek") || // uses "Namibia" rule ! zid.equals("Eire") || ! zid.equals("Europe/Bratislava") || // link to "Europe/Prague" ! zid.equals("Europe/Dublin") || // uses "Eire" rule ! zid.equals("Europe/Prague") || ! zid.equals("Asia/Tehran") || // last rule mismatch ! zid.equals("Iran")) { // last rule mismatch continue; } if (! zi.equalsTo(ziOLD)) { System.out.println(zi.diffsTo(ziOLD)); throw new RuntimeException(" FAILED: " + zid);
< prev index next >