JDK-6506616 : (cal) The beginning day of the japanese Showa era is wrong.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-12-20
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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 6 JDK 7
6u2Fixed 7 b08Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The day of beginning "Showa era" is 1926/12/26 at JapaneseImperialCalendar class. But, according to 'Imperial rescript of changing the name of the era at the Showa era', The day of beginning "Showa era" is 1926/12/25.

There is the following as an official document. 
(line 34, quoted 'Imperial rescript of changing the name of the era at the Showa era')
http://kokkai.ndl.go.jp/SENTAKU/sangiin/007/0804/00702210804006c.html

Accoding to JIS X 0301, The beginning day of the era at Showa era is
1926/12/26(yyyy/MM/dd). This can be inspected at 'Japanese Industrial
Standards Committee' site.
http://www.jisc.go.jp/jisc/index.html

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION 1926-12-25 seems to be the correct one. The old JIS X 0301 has 1926-12-26 as in the Description. But it seems to have been revised in 2002?
20-12-2006

WORK AROUND The era transitions are described in jre/lib/calendars.properties. The following is the fixed one. # Meiji since 1868-01-01 00:00:00 local time (Gregorian) # Taisho since 1912-07-30 00:00:00 local time (Gregorian) # Showa since 1926-12-25 00:00:00 local time (Gregorian) # Heisei since 1989-01-08 00:00:00 local time (Gregorian) calendar.japanese.type: LocalGregorianCalendar calendar.japanese.eras: \ name=Meiji,abbr=M,since=-3218832000000; \ name=Taisho,abbr=T,since=-1812153600000; \ name=Showa,abbr=S,since=-1357603200000; \ name=Heisei,abbr=H,since=600220800000
20-12-2006