> 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: Update the test configuration properties ------------- Changes: - all: https://git.openjdk.org/jdk/pull/33079/files - new: https://git.openjdk.org/jdk/pull/33079/files/c2d8098b..f70f9ed5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=33079&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=33079&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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
