Fix (by also catching ArithmeticException)
@@ -35,7 +35,10 @@ public final class BigDecimalParser
return new BigDecimal(chars, off, len);
}
return parseBigDecimal(chars, off, len, len / 10);
- } catch (NumberFormatException e) {
+
+ // 20-Aug-2022, tatu: Although "new BigDecimal(...)" only throws NumberFormatException
+ // operatons by "parseBigDecimal()" can throw "ArithmeticException", so handle both:
+ } catch (ArithmeticException | NumberFormatException e) {
String desc = e.getMessage();
// 05-Feb-2021, tatu: Alas, JDK mostly has null message so:
if (desc == null) {
