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

Combining safe-navigation operator and indexing in SpEL [SPR-16003] #20552

Closed
spring-projects-issues opened this issue Sep 25, 2017 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue

Comments

@spring-projects-issues
Copy link
Collaborator

Eric Bottard opened SPR-16003 and commented

Is there a way to combine ?. and array/map indexing?
If labels is a Map that can be null, I'd like a nice way to express this using [] indexing:
#root.labels?.get('key')


No further details from SPR-16003

@spring-projects-issues spring-projects-issues added status: waiting-for-triage An issue we've not yet triaged or decided on type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) and removed type: enhancement A general enhancement labels Jan 11, 2019
@snicoll
Copy link
Member

snicoll commented Sep 18, 2023

Duplicate of #21468

@snicoll snicoll marked this as a duplicate of #21468 Sep 18, 2023
@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 18, 2023
@sbrannen sbrannen changed the title Safe Navigation Operator and Indexing [SPR-16003] Combining safe-navigation operator and indexing in SpEL [SPR-16003] Jan 12, 2024
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) status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants