RFR: 8366517: DateFormatSymbols(Locale) throws NPE if Locale argument is null
Justin Lu
jlu at openjdk.org
Tue Sep 2 23:10:41 UTC 2025
On Tue, 2 Sep 2025 19:29:37 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.
Looks good to me and the static factory methods already specify the NPE. fyi: PR title is missing the ` around code portions.
-------------
Marked as reviewed by jlu (Committer).
PR Review: https://git.openjdk.org/jdk/pull/27060#pullrequestreview-3178410659
More information about the core-libs-dev
mailing list