-
Notifications
You must be signed in to change notification settings - Fork 59
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
jdk21: use latest mockito-core as dependency for updated bytebuddy #515
Comments
Do you mind sending us a PR that upgrades to Mockito 5 and resolves the deprecations? Then I can publish a new release for it. |
Just tried to make a PR but running into a few problems: 1.)
which does not work on jdk21, is this necessary for something? 2.) building the compiler bridge with scala 2.13.8 does not work with jdk21 .. I upgraded to scala 2.13.12 3.) there are quite a few tests failing, all related to reflection
with errors like this:
4.) some code is not compiling/logging errors
Are there requirements for building on jdk < 21 or scala < 2.13 < 12 ? |
Based on https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html it appears we need to upgrade Scala to 2.13.11 and SBT to 1.9.0 minimum. Let's do the upgrade to SBT first and then we do Scala? |
@domdorn I think I'm wondering what the plan is anyway for building with JVM versions in the CI workflow. Currently, the project is built with versions 8, 11 and 14. Should new versions be added? Only LTS versions or more? @TimvdLippe Are you maintaining the project? Would be great if this was documented in the README. It currently only lists Bruno Bonnano as the author, who apparently does not exist any more. 🤔 |
@ultrasecreth was maintainer in their spare time. I sometimes click the merge button on automated PRs. Feel free to submit a PR and then we can take a look. |
@domdorn looks like scala version got a bump can you push the PR yet? otherwise I may try. :-) |
@karlroberts please go ahead. Unfortunately, I don't have any ressources for this atm. |
My project only had included
mockito-scala
as dependency.When upgrading to JDK21, we've got the following error:
our Dependencies.scala looks like this
Without the explicit inclusion of
mockito-core
an old version of mockito was pulled in which included a bytebuddy version that does not yet understand JDK21 classes.The text was updated successfully, but these errors were encountered: