[jdk25u-dev] RFR: 8369804: TestGenerators.java fails with IllegalArgumentException: bound must be greater than origin

Roland Mesde duke at openjdk.org
Fri Dec 5 23:04:44 UTC 2025


Backporting JDK-8369804: TestGenerators.java fails with IllegalArgumentException: bound must be greater than origin.

For parity with Oracle JDK.

Fixed intermittent test failure caused by sampling two floats that occasionally produce identical values. Now retries sampling until distinct values are obtained. Also improved error reporting by throwing exceptions during generator construction instead of at sampling time.

Ran GHA Sanity Checks (passed), and related compiler tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

(Passed) - make test TEST=test/hotspot/jtreg/compiler

Results are attached.

[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/23972146/linux-aarch64-specific-test.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/23972147/linux-x64-specific-test.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/23972148/macos-aarch64-specific-test.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/23972149/windows-x64-specific-test.log)

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

Commit messages:
 - Backport f2a998326a6bebd4a7d2d0a39f785b2e6dac68c4

Changes: https://git.openjdk.org/jdk25u-dev/pull/67/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=67&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369804
  Stats: 22 lines in 3 files changed: 16 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/67.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/67/head:pull/67

PR: https://git.openjdk.org/jdk25u-dev/pull/67


More information about the jdk-updates-dev mailing list