<i18n dev> Integrated: 8039165: [Doc] MessageFormat null locale generates NullPointerException

Justin Lu jlu at openjdk.org
Tue Jul 25 18:30:00 UTC 2023


On Mon, 17 Jul 2023 21:04:48 GMT, Justin Lu <jlu at openjdk.org> wrote:

> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8312197) which updates the javadoc for the constructor of MessageFormat regarding a `null` locale,
> 
> `MessageFormat` when created with a `null` locale may throw a `NullPointerException` either during the object creation, or later when `format()` is called by the `MessageFormat` object (test file has examples of both). This change updates the specification of MessageFormat to make this apparent.
> 
> The test for this change was merged with `Bug6481179.java` into `MessageFormatExceptions.java` (As they both test exceptions). In addition, some other exception testing regarding MessageFormat was added.
> 
> Thanks

This pull request has now been integrated.

Changeset: c6396dce
Author:    Justin Lu <jlu at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c6396dceb9a64578d5b335af27ad1d968190a1fa
Stats:     164 lines in 3 files changed: 97 ins; 64 del; 3 mod

8039165: [Doc] MessageFormat null locale generates NullPointerException

Reviewed-by: naoto

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

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


More information about the i18n-dev mailing list