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
mockito on Java 11-ea+21 #1426
mockito on Java 11-ea+21 #1426
Conversation
Requires -Dnet.bytebuddy.experimental=true system property to be set!
Codecov Report
@@ Coverage Diff @@
## release/2.x #1426 +/- ##
==============================================
Coverage 88.61% 88.61%
Complexity 2357 2357
==============================================
Files 292 292
Lines 5949 5949
Branches 719 719
==============================================
Hits 5272 5272
Misses 497 497
Partials 180 180
Continue to review full report at Codecov.
|
Yes. Looks good. Would have pushed it myself but currently on vacation. Sorry for the delay. |
Thank you for confirming! I'll merge it. |
mockito-core-2.21.0.jar with org.mockito.plugins.MockMaker "mock-maker-inline" the fix is not working with java 1.8_172 and java 11-ea+24. without "mock-maker-inline" it works org.mockito.exceptions.base.MockitoException: If you're not sure why you're getting this error, please report to the mailing list. Java : 1.8 You are seeing this disclaimer because Mockito is configured to create inlined mocks. Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface de.espirit.or.schema.EntityType, interface java.io.Serializable]
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface de.espirit.or.schema.EntityType, interface java.io.Serializable] This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
|
Fixes #1419
Requires
-Dnet.bytebuddy.experimental=true
system property to be set to let bytebuddy use asm API versionASM7_EXPERMIENTAL
and use the same one inInlineBytecodeGenerator
.