RFR: 8037180: [TEST_BUG] test/sun/util/calendar/zi/Zoneinfo.java incorrectly calculates raw GMT offset change time

2014-03-12 Thread Aleksej Efimov

Hello,

Can I have a review for a 'test/sun/util/calendar/zi/Zoneinfo.java' test 
bug failure [1] related to the latest tzdata2014a integration [2].

The test failure message:
Asia/Istanbul : Asia/Istanbul
offset=720,dstSavings=360,useDaylight=true,transitions=171,offsets=5,checksum=-508379603,gmtChanged=false
[NG]offset=720,dstSavings=360,useDaylight=true,transitions=171,offsets=5,checksum=-508379603,gmtChanged=true
--System.err:(13/732)--
java.lang.RuntimeException:   FAILED:  Asia/Istanbul
at TestZoneInfo310.main(TestZoneInfo310.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:484)
at 
com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)

at java.lang.Thread.run(Thread.java:744)

This failure caused by the following entry in test tzdata files:
ZoneEurope/Istanbul 1:55:52 -   LMT 1880
1:56:56 -   IMT 1910 Oct # Istanbul 
Mean Time?

2:00Turkey  EE%sT   1978 Oct 15
3:00Turkey  TR%sT   1985 Apr 20 # Turkey Time
2:00Turkey  EE%sT   2007
2:00EU  EE%sT   2011 Mar 27 1:00u
2:00-   EET 2011 Mar 28 1:00u
2:00EU  EE%sT   2014 Mar 30 1:00u
2:00-   EET 2014 Mar 31 1:00u
2:00EU  EE%sT

The raw GMT offset here is constant=2:00 and not changed since 1985 Apr 
20. But the test code 'test/sun/util/calendar/zi' shows that there will 
be a future raw GMT offset change. The following fix resolves this 
problem: http://cr.openjdk.java.net/~aefimov/8037180/9/webrev.00/


-Aleksej


[1] https://bugs.openjdk.java.net/browse/JDK-8037180
[2] https://bugs.openjdk.java.net/browse/JDK-8037012


RFR: 8037012: (tz) Support tzdata2014a

2014-03-12 Thread Aleksej Efimov

Hello,

Can I have a review for a tzdata2014a [1] integration to JDK9: 
http://cr.openjdk.java.net/~aefimov/8037012/9/webrev.00

The following test sets were executed on the build with latest tzdata:
test/sun/util/calendar test/java/util/Calendar 
test/sun/util/resources/TimeZone test/sun/util/calendar 
test/java/util/TimeZone test/java/time test/java/util/Formatter 
test/closed/java/util/Calendar test/closed/java/util/TimeZone


One test failure was observed - see the bug report for details: [2]. The 
review for this test failure fix will be sent in a few moments.

Other tests passes.

Thank you,
Aleksej

[1] https://bugs.openjdk.java.net/browse/JDK-8037012
[2] https://bugs.openjdk.java.net/browse/JDK-8037180