[threeten-dev] Non-webrev: Change yyyy to uuuu
Stephen Colebourne
scolebourne at joda.org
Mon Feb 25 00:57:44 PST 2013
On 25 February 2013 07:58, Masayoshi Okutsu <masayoshi.okutsu at oracle.com> wrote:
>> Personally, I think it would make most sense to support full leniency.
>> Any year-of-era is valid, its simply relative to the base year for
>> that era (with the output normalized to a different era). ie S79-06-06
>> parses and normalises to H13-06-06.
>
> When I was working on Japanese calendar support for JDK 6, someone proposed
> per-field leniency. For example, era and year values are OK to change by
> normalization, but other fields are not. I found it was an interesting idea,
> but haven't had a chance to support it.
We already have some leniency on other fields.
>> Perhaps this is part of the broader strict vs lenient date resolution
>> that is still an open issue.
>
> Do you plan to provide a solution for that in JDK 8? If not, the parser
> should be either strict or lenient. It's confusing if strict and lenient are
> dependent on given dates.
I'd like to, and there is an open issue. But it might not happen due
to time-pressures...
Stephen
More information about the threeten-dev
mailing list