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

Justin Lu jlu at openjdk.org
Wed Sep 3 18:57:42 UTC 2025


On Wed, 3 Sep 2025 17:06:32 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> 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:
> 
>   Further requireNonNull()

Marked as reviewed by jlu (Committer).

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

PR Review: https://git.openjdk.org/jdk/pull/27060#pullrequestreview-3182018697


More information about the core-libs-dev mailing list