<i18n dev> RFR: 8160225: java.time.format.DateTimeFormatter issues for month-of-year

Thejasvi Voniadka thejasvi.v.voniadka at oracle.com
Tue Jul 30 12:54:27 UTC 2019


Hi,

Request your review of this simple change.

JBS:    https://bugs.openjdk.java.net/browse/JDK-8160225 (java.time.format.DateTimeFormatter issues for month-of-year)

Description:    It is a simple documentation change. The DateTimeFormatter expects the month format to be represented by "L" for number and "M" for text (eg: "Jul" may be accepted by a format string "MMM"; "07" may be accepted by a format string "LL", and so on). However, the documentation lists this somewhat confusingly:

"M/L month-of-year number/text 7; 07; Jul; July; J"

A casual reader may interpret "M" as the numeric representation and "L" as the textual representation of the month-of-year, whereas the actual behavior of the API is the other way around. This patch fixes it.


Webrev:    http://cr.openjdk.java.net/~vagarwal/8160225/webrev.0/






More information about the i18n-dev mailing list