Consider UTC ZoneId
parsing/formatting inconsistency in different Java language versions
#104
Labels
wontfix
This will not be worked on
While migrating one of the projects we've found an inconsistent behavior in parsing and formatting UTC
java.time.ZoneId
in different Java language versions.As per our tests, Java 11 and Java 15 are converting
UTC
toEtc/UTC
Zone ID while Java 8-10 and Java 12-14 are convertingUTC
toUTC
Zone ID.The following code snippet can be used as a minimalistic example of the issue:
Running the example with different JVMs produces different results.
We've tested OpenJDK, Azul JDK, Amazon Corretto JDK and all produce similar inconsistency. A detailed OS- and JDK-specific testing matrix is available here with tests running on Windows, Linux, and macOS under JDKs from 8 to 15.
A more detailed example and explanation are available under a separate repository: https://github.com/yuri-sergiichuk/jdk-zone-parsing-inconsistency.
The text was updated successfully, but these errors were encountered: