Skip to content

Ignore proxies when scanning for field resolvers. #348

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

Merged

Conversation

tristanlins
Copy link
Contributor

I use java proxies to auto generate resolvers.
But the field resolver complain about the missing generic information.

The problem is, that java proxies declares all interface methods but all generic types are erased.
So the scanning ends with an Unable to match type definition (...) with java type (interface java.lang.Iterable): Java class is not a List or generic type information was lost: interface java.lang.Iterable error.

@oliemansm oliemansm added this to the 5.7.2 milestone Jan 15, 2020
@oliemansm oliemansm merged commit f973984 into graphql-java-kickstart:master Jan 15, 2020
@oliemansm oliemansm modified the milestones: 5.7.2, 6.0.0 Feb 19, 2020
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