forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix superclass functional interface resolution in Painless (elastic#8…
…1698) A recent change [1] to how we load our allow list changed the resolution for how Painless looks up methods of super classes. However, functional interface loading was not changed which caused a bug where a functional interface would not look at its super interfaces for the functional interface method [2]. This fixes the issue by going through each super interface until the functional interface method is found when the target interface doesn't have the functional interface method. [1] elastic#76955 [2] elastic#81696 Also a big thanks to @megglos and @TheFireCookie for their help with this issue.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 81698 | ||
summary: Fix subclass functional interface resolution in Painless | ||
area: Infra/Scripting | ||
type: regression | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters