RFR: 8366517: `DateFormatSymbols(Locale)` throws NPE if `Locale` argument is null [v2]

Naoto Sato naoto at openjdk.org
Wed Sep 3 15:22:23 UTC 2025


> Adding a `@throws` clause for NPE in `java.text.DateFormatSymbols(Locale)` constructor. The bug suggests it should  throw a `MissingResourceException`, but I don't think we can change this long standing behavior. Instead, explicitly specify the NPE in the javadoc.

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

  Use Objects.requireNonNull()

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27060/files
  - new: https://git.openjdk.org/jdk/pull/27060/files/5007b81e..7b3d4e00

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

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

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


More information about the core-libs-dev mailing list