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

Fix horrible capture #18907

Merged
merged 2 commits into from
Jun 16, 2016
Merged

Fix horrible capture #18907

merged 2 commits into from
Jun 16, 2016

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Jun 16, 2016

This addresses @uschindler TODO in #18899

He hacked around it with a "capture", but we dont want that, very groovy-like and may have bad side effects.

We just need to pass the correct information as BSM args instead of the stack (the names of deferred lambdas/method references). For now we still emit a null on the stack as a placeholder.

@jdconrad
Copy link
Contributor

LGTM!

@rmuir rmuir merged commit f7b7204 into elastic:master Jun 16, 2016
@uschindler
Copy link
Contributor

Cool thanks!

@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v5.0.0-alpha4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants