Skip to content

#243 - Fix for ClassCastException with generic types #248

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
Jan 3, 2023

Conversation

rbygrave
Copy link
Contributor

@rbygrave rbygrave commented Jan 3, 2023

The core fix is with DBeanMap. In detail, when wiring mocks/spy this part of DBeanMap additionally registers the mock with the generic type (which is in the generated code).

Prior to this fix, this process was too loose and registered the mock with other types like Model2 in the test case.

The core fix is with DBeanMap. In detail, when wiring mocks/spy
this part of DBeanMap additionally registers the mock
with the generic type (which is in the generated code).

Prior to this fix, this process was too loose and registered
the mock with other types like Model2 in the test case.
@rbygrave rbygrave merged commit 525a3e2 into master Jan 3, 2023
@rbygrave rbygrave self-assigned this Jan 3, 2023
@rbygrave rbygrave added this to the 8.11 milestone Jan 3, 2023
@rbygrave rbygrave linked an issue Jan 3, 2023 that may be closed by this pull request
@rbygrave rbygrave deleted the feature/243-ClassCastException branch January 3, 2023 04:15
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.

(Avaje-Test) ClassCastException on some Generic Abstract Types
1 participant