-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 23
-
Component/s: core-libs
-
generic
-
generic
For a `java.text.DecimalFormat` created with an empty String pattern, the value returned by `DecimalFormat.getMaximumFractionDigits()` will now be 340, instead of the previous value, `Integer.MAX_VALUE`. This prevents an `OutOfMemoryError` from occurring when `DecimalFormat.toPattern()` is called. If the desired maximum fractional digits should exceed 340, it is recommended to achieve this behavior using the method `DecimalFormat.setMaximumFractionDigits()`.