Background
SpelParserConfiguration already enforces a limit on expression length (getMaximumExpressionLength()), but there is currently no equivalent limit on an expression's structural nesting depth (e.g. nested inline lists).
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.
Background
SpelParserConfigurationalready enforces a limit on expression length (getMaximumExpressionLength()), but there is currently no equivalent limit on an expression's structural nesting depth (e.g. nested inline lists).
Proposal
Add a configurable nesting-depth limit to
SpelParserConfiguration, and when the limit is exceeded fail parsing with a descriptiveSpelParseException— as an enhancement in 7.1, to improve parser diagnostics.