United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6506616 (cal) The beginning day of the japanese Showa era is wrong.
6506616 : (cal) The beginning day of the japanese Showa era is wrong.

Details
Type:
Bug
Submit Date:
2006-12-20
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.util:i18n
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
7

Related Reports
Backport:
Relates:

Sub Tasks

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
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
                                     
2006-12-20
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?
                                     
2006-12-20



Hardware and Software, Engineered to Work Together