Improve diagnostics in SpEL for large array creation
Attempting to create a large array in a SpEL expression can result in
an OutOfMemoryError. Although the JVM recovers from that, the error
message is not very helpful to the user.
This commit improves the diagnostics in SpEL for large array creation
by throwing a SpelEvaluationException with a meaningful error message
in order to improve diagnostics for the user.
Closes gh-28257
@ -259,14 +267,19 @@ public class ConstructorReference extends SpelNodeImpl {
@@ -259,14 +267,19 @@ public class ConstructorReference extends SpelNodeImpl {
@ -327,6 +340,13 @@ public class ConstructorReference extends SpelNodeImpl {
@@ -327,6 +340,13 @@ public class ConstructorReference extends SpelNodeImpl {