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

Roger Riggs rriggs at openjdk.org
Wed Sep 3 21:24:43 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()

Considerable scope creep here, the issue title and PR title should be updated. And the CSR.

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

PR Comment: https://git.openjdk.org/jdk/pull/27060#issuecomment-3250854288


More information about the core-libs-dev mailing list