Possible casing issue with DateTimeFormatter in JDK 15 on

Mark Derricutt mark at talios.com
Thu Apr 14 09:24:04 UTC 2022

On 14/04/2022 at 8:44:57 PM, Mark Derricutt <mark at talios.com> wrote:

In this case, it’s triggered when using the AM/PM specifier - such as in
> h:mma - under JDK8 and JDK11 this renders out as PM but, in 15/16/17/18
> this renders as pm.
Follow up - was pointed to https://bugs.openjdk.java.net/browse/JDK-8211985 on
twitter - and this does indeed seem to be the same locale related issue.

Changing my code to call:


and setting the locate explicitly yields the desired results - and runs the
same across 8/18 - which means I can alter the underly code separate to any
JDK rework I’m doing.

And now… for easter eggs.

> --
> "Great artists are extremely selfish and arrogant things" — Steven Wilson,
> Porcupine Tree

More information about the discuss mailing list