RFR: 8293146: Strict DateTimeFormatter fails to report an invalid week 53

Naoto Sato naoto at openjdk.org
Tue Sep 6 17:36:38 UTC 2022


Fixed the max week number on parsing the week of week-based year field in strict mode. It used to be always returning the largest maximum, which should be adjusted by the actual week-based year.

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

Commit messages:
 - 8293146: Strict DateTimeFormatter fails to report an invalid week 53

Changes: https://git.openjdk.org/jdk/pull/10184/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10184&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8293146
  Stats: 65 lines in 2 files changed: 61 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/10184.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10184/head:pull/10184

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


More information about the core-libs-dev mailing list