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

#511 fixing InterfaceAdapter abstract name lookup. #631

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

rPraml
Copy link
Contributor

@rPraml rPraml commented Dec 10, 2019

this is a follow up to #511 and #512

It fixes the lookup:

  • take only abstract methods (ignore default methods)
  • skip "equals", "hashCode" and "toString"

There are also tests now.

@@ -692,7 +692,8 @@ else if (value instanceof Wrapper) {
reportConversionError(value, type);
}
else if (type.isInterface() && (value instanceof NativeObject
|| value instanceof NativeFunction)) {
|| value instanceof NativeFunction
|| value instanceof ArrowFunction)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also allow to create adapters from arrowFunctions

@gbrail
Copy link
Collaborator

gbrail commented Dec 18, 2019

Looks good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants