-
Notifications
You must be signed in to change notification settings - Fork 852
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
Cannot convert function to interface java.util.function.Consumer since it contains methods with different names #511
Comments
GuillermoBlasco
added a commit
to GuillermoBlasco/rhino
that referenced
this issue
Jan 10, 2019
Now default methods are ignored, so they do not conflict with interface (abstract) methods to implement.
rPraml
added a commit
to FOCONIS/rhino
that referenced
this issue
Dec 10, 2019
gbrail
pushed a commit
that referenced
this issue
Dec 18, 2019
Is there any workaround? |
Suggest closing as implemented by #631 |
Closing as implemented by #631 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given an arrow function passed to a
forEach
the intepreter crashes with the message:The point is that the
InterfaceAdapter:27
expects an interface with at least one method, and if many all called the same. Which makes sense prior todefault
keyword for interfaces. But given that Consumer interface now has aandThen
default methodInterfaceAdapter:27
finds that there are two methods called differently.Rhino version: 1.7.10
JS code interpreted:
Where
tc.getValues()
returns a NativeArray.Stack trace:
The text was updated successfully, but these errors were encountered: