Skip to content

Conversation

@breskeby
Copy link
Contributor

@breskeby breskeby commented Sep 5, 2023

In Java 21 List now extends SequencedCollection, instead of Collection
directly. When resolving methods Painless starts at the defined type,
and iterates up through super classes and interfaces. Unfortunately if a
superinterface was not known, as it is for SequencedCollection since it
is not in the allowed list of classes, method resolution would give up.
This commit adjusts the superinterface interation to continue traversing
until the method is found or no more superinterfaces are found.

fixes elastic#97022

(cherry picked from commit 16b4557)

# Conflicts:
#	gradle.properties
@breskeby breskeby merged commit bc733b9 into elastic:7.17 Sep 5, 2023
@breskeby breskeby deleted the backport/7.17/pr-97062 branch September 5, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants