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

Fixes hooks not working in some cases #18

Merged
merged 1 commit into from
Apr 11, 2014

Conversation

rsertelon
Copy link
Collaborator

The compiler seems to generate two extraMapping methods for Hook<S, D> implementations. Their signatures looks like the following:

  • extraMapping(Object, Object)
  • extraMapping(S, D)

The code was stopping at the first one thus leading to possible ClassCastExceptions and making the mapping invalid.

This pull request aims at solving this problem by going through all generated extraMapping methods and ignoring the extraMapping(Object, Object) version.

No test yet. Can't find a simple way to test it for now.

JoanZapata added a commit that referenced this pull request Apr 11, 2014
Fixes hooks not working in some cases
@JoanZapata JoanZapata merged commit 5a9bb32 into JoanZapata:master Apr 11, 2014
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