RFR: 8272358: Some tests may fail when executed with other locales than the US

Sergey Bylokhov serb at openjdk.java.net
Sat Sep 25 05:16:59 UTC 2021


On Sat, 25 Sep 2021 02:41:10 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> There are still 1500+ failures due to non-US locale after this patch.
> 
> So my question is: does it make sense to fix only 4 of them?

This error means that your OpenJDK build contains the translation for your locale, and different tools use the resource bundles to translate different outputs. Looks like nobody validates that the translated output is correct for the various cases since the tests fail on non-US translated locales. I guess in the ideal world that tests should be updated to validate the output for each locale, or probably even better they should check that the output is correct for some specific "key" in the resource bundle.

The current issue is different, it fixes the tests depended on some specific float format and has no dependency on the resource bundles.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5098


More information about the compiler-dev mailing list