SpEL's CompoundExpression.toStringAST()
omits ?
for null-safe navigation
#31326
Labels
Milestone
CompoundExpression.toStringAST()
omits ?
for null-safe navigation
#31326
I discovered this bug while investigating #27421.
Essentially, an expression like
myProperty?.myMethod()
should have an identical AST string representation; whereas, the current AST string representation ismyProperty.myMethod()
without the?
.The above applies specifically to
MethodReference
, but the same holds true forPropertyOrFieldReference
.The text was updated successfully, but these errors were encountered: