The somewhat nonsensical snippet of code
new DecimalFormat("").toLocalizedPattern()
will allocate memory continuously until OutOfMemoryError is thrown.
It seems like the empty string is an invalid pattern, so it should throw IAE.
new DecimalFormat("").toLocalizedPattern()
will allocate memory continuously until OutOfMemoryError is thrown.
It seems like the empty string is an invalid pattern, so it should throw IAE.
- duplicates
-
JDK-6372822 REGRESSION: DecimalFormat.toPattern() causes OutOfMemoryError
-
- Closed
-
- relates to
-
JDK-6372822 REGRESSION: DecimalFormat.toPattern() causes OutOfMemoryError
-
- Closed
-