Code such as new `DecimalFormat().setPositivePrefix(null)` is allowed. These prefix and suffix setters should disallow `null` as input as all it does is creates an illegal state. Otherwise, almost any DecimalFormat operation will throw NPE when trying to process the prefix/suffix.
- csr for
-
JDK-8351075 Disallow null prefix and suffix in DecimalFormat
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/c3b48196
-
Review(master) openjdk/jdk/23880