Duplicate :
|
|
Relates :
|
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.
|