SpelParserConfiguration already exposes a limit on expression
length (getMaximumExpressionLength()), but there is currently
no equivalent limit on expression structural nesting depth
(e.g. deeply nested inline lists, projection .![...],
selection .?[...]).
Proposal: add a configurable nesting-depth limit to
SpelParserConfiguration, and when the limit is exceeded fail
parsing with a descriptive SpelParseException — as an
enhancement in 7.1, to improve parser diagnostics.
SpelParserConfigurationalready exposes a limit on expressionlength (
getMaximumExpressionLength()), but there is currentlyno equivalent limit on expression structural nesting depth
(e.g. deeply nested inline lists, projection
.![...],selection
.?[...]).
Proposal: add a configurable nesting-depth limit to
SpelParserConfiguration, and when the limit is exceeded failparsing with a descriptive
SpelParseException— as anenhancement in 7.1, to improve parser diagnostics.