JDK-8037180 : [TEST_BUG] test/sun/util/calendar/zi/Zoneinfo.java incorrectly calculates raw GMT offset change time
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-12
  • Updated: 2014-07-29
  • Resolved: 2014-03-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u11Fixed 9 b06Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
For the following tzdb entry(tzdata2014a) the GMT offset change time is calculated incorrectly:
Zone    Europe/Istanbul 1:55:52 -       LMT     1880
                        1:56:56 -       IMT     1910 Oct # Istanbul Mean Time?
                        2:00    Turkey  EE%sT   1978 Oct 15
                        3:00    Turkey  TR%sT   1985 Apr 20 # Turkey Time
                        2:00    Turkey  EE%sT   2007
                        2:00    EU      EE%sT   2011 Mar 27 1:00u
                        2:00    -       EET     2011 Mar 28 1:00u
                        2:00    EU      EE%sT   2014 Mar 30 1:00u
                        2:00    -       EET     2014 Mar 31 1:00u
                        2:00    EU      EE%sT 

The test class reports that there will be a future GMT raw offset change on "2014 Mar 31", but the raw GMT offset is not changing since "1985 Apr 20".
The following test implementation error cause the test failure with latest tzdata (2014a):
    Europe/Istanbul : Europe/Istanbul
offset=7200000,dstSavings=3600000,useDaylight=true,transitions=171,offsets=5,checksum=-508379603,gmtChanged=false
[NG]offset=7200000,dstSavings=3600000,useDaylight=true,transitions=171,offsets=5,checksum=-508379603,gmtChanged=true
Comments
Test Failure message: Asia/Istanbul : Asia/Istanbul offset=7200000,dstSavings=3600000,useDaylight=true,transitions=171,offsets=5,checksum=-508379603,gmtChanged=false [NG]offset=7200000,dstSavings=3600000,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)
12-03-2014