Kent Yao created SPARK-55755:
--------------------------------
Summary: Handle null ArithmeticException message on JDK 25
Key: SPARK-55755
URL: https://issues.apache.org/jira/browse/SPARK-55755
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 4.2.0
Reporter: Kent Yao
On JDK 25, Math.multiplyExact/addExact may throw ArithmeticException without a
message (null instead of 'long overflow'). This causes NPE in tests that check
the raw exception message, and could produce null message parameters in Spark
error conditions through MathUtils.withOverflow.
This fix:
1. Updates MathUtils.withOverflow to provide a fallback message 'Overflow' when
the raw JDK exception message is null (both interpreted and codegen paths).
2. Makes test assertions null-safe for raw ArithmeticException message checks
across multiple test suites.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]