[jdk21u-dev] RFR: 8367901: Calendar.roll(hour, 24) returns wrong result

Roland Mesde duke at openjdk.org
Wed Nov 12 15:55:57 UTC 2025


Backporting JDK-8367901: Calendar.roll(hour, 24) returns wrong result. Fixes the roll implementation and adds a new test. Ran GHA Sanity Checks (passed) and new test (passed). The merge conflict was just the copyright header which was updated to the newer one.

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

Commit messages:
 - Update RollHoursTest.java
 - Update RollHoursTest.java
 - Backport ced3f13f4e036513444d1fea3958be11741c2b8e

Changes: https://git.openjdk.org/jdk21u-dev/pull/2460/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2460&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8367901
  Stats: 147 lines in 2 files changed: 144 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2460.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2460/head:pull/2460

PR: https://git.openjdk.org/jdk21u-dev/pull/2460


More information about the jdk-updates-dev mailing list