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

Drop varargs collector before invoking a user method. #2736

Merged
merged 1 commit into from Aug 22, 2022

Conversation

raphw
Copy link
Member

@raphw raphw commented Aug 22, 2022

When invoking a user method that uses a varargs collector, we need to drop this collector before invoking as we do not supply arguments as varargs. Fixes #2703.

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

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

Nice!

@raphw raphw merged commit 9b93df7 into main Aug 22, 2022
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.

Calling thenCallRealMethod of mocked static method throws ClassCastException on Java 9+
2 participants