<i18n dev> RFR: 8294226: Document missing UnsupportedTemporalTypeException
duke
duke at openjdk.org
Tue Jun 24 04:24:28 UTC 2025
On Mon, 16 Jun 2025 16:36:43 GMT, Gautham Krishnan <gkrishnan at openjdk.org> wrote:
> Some methods in the java.time.chrono interfaces—ChronoLocalDate, ChronoLocalDateTime, and ChronoZonedDateTime—override methods from the java.time.temporal.Temporal interface that are documented to throw UnsupportedTemporalTypeException when given unsupported fields or units.
>
> These overridden methods include:
>
> with(TemporalField, long)
>
> plus(long, TemporalUnit)
>
> minus(long, TemporalUnit)
>
> However, their Javadoc in the chrono interfaces does not mention the possibility of this exception, resulting in incomplete or inconsistent documentation. This contrasts with the parent Temporal interface, which explicitly documents the exception.
@gauthamkrishnanibm
Your change (at version 15558c58513ff2168ae57a67d36ea12492534ffd) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25836#issuecomment-2998753203
More information about the i18n-dev
mailing list