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
Revert "Update objenesis to 3.1" #2009
Conversation
This reverts commit 32684d1.
Codecov Report
@@ Coverage Diff @@
## release/3.x #2009 +/- ##
==============================================
Coverage 84.90% 84.90%
Complexity 2692 2692
==============================================
Files 324 324
Lines 8161 8161
Branches 972 972
==============================================
Hits 6929 6929
Misses 964 964
Partials 268 268 Continue to review full report at Codecov.
|
Annoying but probably the best option. Maybe we can explicitly downgrade Objenesis in the mockito-android artifact instead? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we can just downgrade the version in mockito-android? What errors did the new Objenesis fix? Maybe it's required to work with the newest Java versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we can just downgrade the version in mockito-android? What errors did the new Objenesis fix? Maybe it's required to work with the newest Java versions?
Hm yes that could work. I can test that out tomorrow. |
This issue still blocks android projects to use latest mockito. Is further work planned on this PR? If not I can provide a different PR with requested fix. |
I have not yet had the time to do an analysis on this issue. If you have a proposed fix and you can confirm it works, I would be very happy to review it! Thanks in advance 😄 |
Just to be sure: did you try to downgrade Objenesis explicitly? Are you using mockito-android? |
We downgraded objenesis version with gradle dependency resolutions.
This worked well. We have I will build a mockito-android with older objenesis and check the fix. (It might take time) |
Thank you. My favorit solution would be to fix the version for Android-specific artifacts but use the latest for core to support newer Java versions. |
I have experimented downgrading objenesis just in mockito-android. When mockito-android is used with mockito-kotln, gradle uses higher version from mockito-kotlin. A solution is suggested in #2024. |
This was fixed in #2024 |
Reverts #1998
See #2007 for more info on how this breaks Android
Fixes #2007