<i18n dev> Integrated: 8351074: Disallow null prefix and suffix in DecimalFormat
Justin Lu
jlu at openjdk.org
Wed Mar 5 18:16:08 UTC 2025
On Tue, 4 Mar 2025 01:37:57 GMT, Justin Lu <jlu at openjdk.org> wrote:
> Please review this PR and associated CSR which disallows passing null to 4 `DecimalFormat` prefix/suffix setter methods.
>
> Currently these setters do not check the input String for null. When the prefix/suffix is null, any such DecimalFormat instances are effectively non-functional as it will throw NPE for most operations.
This pull request has now been integrated.
Changeset: c3b48196
Author: Justin Lu <jlu at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c3b48196af40356a8251b42db13e02ed905c2139
Stats: 64 lines in 2 files changed: 59 ins; 0 del; 5 mod
8351074: Disallow null prefix and suffix in DecimalFormat
Reviewed-by: naoto
-------------
PR: https://git.openjdk.org/jdk/pull/23880
More information about the i18n-dev
mailing list