Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpEL's CompoundExpression.toStringAST() omits ? for null-safe navigation #31326

Closed
sbrannen opened this issue Sep 27, 2023 · 0 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Sep 27, 2023

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 is myProperty.myMethod() without the ?.

The above applies specifically to MethodReference, but the same holds true for PropertyOrFieldReference.

@sbrannen sbrannen added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Sep 27, 2023
@sbrannen sbrannen added this to the 6.0.13 milestone Sep 27, 2023
@sbrannen sbrannen self-assigned this Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant