> withVariant() used getDayOfYear() as the month-length bound when clamping the 
> day-of-month to the target variant.
> 
> Use getMonthLength(), matching resolvePreviousValid.
> 
> getMonthLength() now calls checkCalendarInit().
> 
> HijrahConfigTest copies a custom variant whose year 1300 month 1 has 29 days 
> and checks that day 30 clamps to 29.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

sbracely has updated the pull request incrementally with one additional commit 
since the last revision:

  add clamp comment. udpate bug header

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/33079/files
  - new: https://git.openjdk.org/jdk/pull/33079/files/f70f9ed5..708f450c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=33079&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=33079&range=01-02

  Stats: 4 lines in 2 files changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/33079.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33079/head:pull/33079

PR: https://git.openjdk.org/jdk/pull/33079

Reply via email to