[threeten-dev] what happened to JapaneseChronology?
roger riggs
roger.riggs at oracle.com
Fri Mar 15 07:52:23 PDT 2013
Hi Patrick,
The first official day of the SHOWA era is 1, 12, 29 (The month
numbering does not start at one.)
Similarly, the first official day of TAISHO is 1, 7, 30.
I don't know why the IllegalArgumentException does not have a message.
(Masayoshi?)
I'm not sure why the tests started failing now unless the leniency changes
have made a difference; though the tests should have been fixed at the
same time.
It looks like a test bug.
Thanks, Roger
On 3/15/2013 4:30 AM, patrick zhang wrote:
> Hi,
>
> Any suggestion for this problem?
>
> Regards
> Patrick
>
> On 2013-3-13 12:37, Patrick Zhang wrote:
>> Hi Team,
>>
>> What happened to JapaneseChronology? It will not support the later 2
>> eras? It looks it is one new failure and I do not meet it on last week.
>> =============
>> System.out.println(JapaneseChronology.INSTANCE.date(JapaneseEra.MEIJI, 1,
>> 1, 1));
>> System.out.println(JapaneseChronology.INSTANCE.date(JapaneseEra.HEISEI,
>> 1, 1, 1));
>> System.out.println(JapaneseChronology.INSTANCE.date(JapaneseEra.SEIREKI,
>> 1, 1, 1));
>> System.out.println(JapaneseChronology.INSTANCE.date(JapaneseEra.SHOWA, 1,
>> 1, 1)); //will throw exception
>> System.out.println(JapaneseChronology.INSTANCE.date(JapaneseEra.TAISHO,
>> 1, 1, 1)); //will throw exception
>> ==============
>>
>> Exception info:
>> ==============
>> Exception in thread "main" java.lang.IllegalArgumentException
>> at java.time.chrono.JapaneseDate.of(JapaneseDate.java:256)
>> at
>> java.time.chrono.JapaneseChronology.date(JapaneseChronology.java:166)
>> at Test.f1(Test.java:17)
>> at Test.main(Test.java:5)
>> ==============
>>
>> Regards
>> Patrick
>>
>>
--
Thanks, Roger
Oracle Java Platform Group
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment
More information about the threeten-dev
mailing list