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

Fix InstantiationError when using any() where a sealed type is expected #939

Merged
merged 3 commits into from Oct 25, 2022

Conversation

cliffred
Copy link
Contributor

@cliffred cliffred commented Sep 29, 2022

Fixes #934

There's no specific test for the issue, that is part of this pr: #937

@Raibaz
Copy link
Collaborator

Raibaz commented Oct 4, 2022

Thanks for looking into this.

Can you also add test coverage, please? 🙏

@cliffred
Copy link
Contributor Author

cliffred commented Oct 4, 2022

Done, @diastremskii already added tests for this is in his PR #937, I've merged that commit into my branch.

@cliffred cliffred mentioned this pull request Oct 4, 2022
@stuebingerb
Copy link
Contributor

Sorry for missing this in my PR!

@ThanksForAllTheFish
Copy link

Are the failing test with java 19 what is holding back this PR?

@m-burst
Copy link
Contributor

m-burst commented Oct 25, 2022

I guess it would help to rebase the PR onto the current master branch, as it uses Java 18 instead of 19 in the CI matrix

@cliffred
Copy link
Contributor Author

Rebased it

@Raibaz Raibaz merged commit 2b9b52f into mockk:master Oct 25, 2022
@m-burst
Copy link
Contributor

m-burst commented Oct 25, 2022

@Raibaz thanks for merging! Are you planning to release a new version anytime soon?

@pkgonan
Copy link

pkgonan commented Oct 27, 2022

Any release plan about this PR?

@gotson
Copy link

gotson commented Nov 28, 2022

Would really appreciate a release, now that Spring Boot 3.0.0 is GA, and targets Java 17, this is becoming a blocker for a migration.

@Raibaz
Copy link
Collaborator

Raibaz commented Nov 29, 2022

You're right, just released v1.13.3: https://github.com/mockk/mockk/releases/tag/1.13.3

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.

Mockk cannot handle sealed classes in every block
9 participants