Skip to content

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.

3 participants