JDK-8284181 : ArgumentsTest.set_numeric_flag_double_vm fails on some locales
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-04-01
  • Updated: 2022-04-04
  • Resolved: 2022-04-04
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.
JDK 19
19 masterFixed
Related Reports
Relates :  
Description
```
[----------] Global test environment set-up.
[----------] 1 test from ArgumentsTest
[ RUN      ] ArgumentsTest.set_numeric_flag_double_vm
/shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/runtime/test_arguments.cpp:599: Failure
Value of: ArgumentsTest::parse_argument(flag->name(), str)
  Actual: false
Expected: true
Valid string '1.e-2' did not parse for type double.
[  FAILED  ] ArgumentsTest.set_numeric_flag_double_vm (0 ms)
[----------] 1 test from ArgumentsTest (85 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (85 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ArgumentsTest.set_numeric_flag_double_vm

 1 FAILED TEST
ERROR: RUN_ALL_TESTS() failed. Error 1
```

Seems to be locale-dependent. I run with LC_NUMERIC=en_DK.UTF-8. Switching to LC_NUMERIC="en_US.UTF-8" makes the error disappear.



Comments
Changeset: e2970749 Author: Ioi Lam <iklam@openjdk.org> Date: 2022-04-04 20:08:07 +0000 URL: https://git.openjdk.java.net/jdk/commit/e29707493e0e6752b82f6d6a6c67a47225490944
04-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8078 Date: 2022-04-01 19:00:01 +0000
01-04-2022