Skip to content

Revert "Add the TrivialDataFetcher interface to MethodFieldResolver so that i…" #336

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
merged 1 commit into from
Nov 16, 2019

Conversation

oliemansm
Copy link
Member

Reverts #330

&& this.method.parameterCount == 0
&& this.method.name.startsWith("get")
&& this.search.type is java.lang.Class<*>
&& (this.search.type as java.lang.Class<*>).getMethod(this.method.getName()) != null
Copy link
Member Author

Choose a reason for hiding this comment

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

@cliedeman This line throws a NoSuchMethodException for methods with package private scope therefore breaking backwards compatibility. Can you add unit tests to ensure it's working properly including the package private use case? Once all that's working I can merge it again.

@oliemansm oliemansm merged commit 7d1f503 into master Nov 16, 2019
@cliedeman
Copy link
Contributor

@oliemansm

I created a new PR #337, I realised I don't need to check the type class because the method object was already obtained earlier via the method resolvers. Are you happy with this approach?

oliemansm added a commit that referenced this pull request Jan 15, 2020
@oryan-block oryan-block deleted the revert-330-trivial-dataloader branch September 6, 2022 17:13
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