JDK-8244843 : [JDK 8u] JapanEraNameCompatTest fails
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: openjdk8u222
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-12
  • Updated: 2020-07-06
  • Resolved: 2020-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
openjdk8u262 b05Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
One of the failing tier1 tests in OpenJDK 8u is:

It fails with:
java.lang.AssertionError: expected [Reiva] but found [\u0420\u0435\u0438\u0432\u0430]
        at org.testng.Assert.fail(Assert.java:94)
test JapanEraNameCompatTest.testChronoJapanEraDisplayName(no, "Reiwa", "R"): failure
java.lang.AssertionError: expected [R] but found [Reiwa]

This issue got introduced with the backport of JDK-8218781. Locale data isn't up-to-date enough. Hence the test fails. The proposal is to include parts of JDK-8008577 and JDK-8145136 which is how this is being fixed in later JDKs.

More information here:
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/f56b4c3feac7 User: andrew Date: 2020-06-02 23:29:37 +0000

URL: https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/f56b4c3feac7 User: andrew Date: 2020-06-01 04:04:42 +0000

Fix Request (OpenJDK 8u): Please approve for OpenJDK 8u as this fixes a long-standing test failure part of tier1. Risk should be low as it only adds additional i18n files which where not present before. Testing: tier1 now one less failure for the jdk suite. RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-May/011707.html webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8244843/03/webrev/