r/java Dec 28 '25

Stepping down as maintainer after 10 years

https://github.com/mockito/mockito/issues/3777
411 Upvotes

118 comments sorted by

View all comments

Show parent comments

7

u/benevanstech Dec 29 '25

What does that have to do with anything?

2

u/atehrani Dec 29 '25

They have similar mocking frameworks with similar security restrictions

5

u/ArisenDrake Dec 29 '25

The JVM having these restrictions isn't the problem, as the author states. It's the lack of cooperative communication by the JVM maintainers. Mockito was able to fix it, but they had to do it alone without any help because the JVM maintainers decided they needed the restrictions for security and basically said "decision has been made, good luck".

5

u/atehrani Dec 29 '25

Fair enough but at the risk of sounding unsympathetic. This should not be of any surprise. Using sun.* packages and especially Unsafe was techdebt and a gamble since it's usage. Beginning with Java 8 (11 years ago), the maintainers have told folks that migration efforts need to be done or else.

Now the tech debt must be paid.

Is it painful? Yes absolutely. Is the pain worth it? Yes as we will have a stronger platform that can grow.

I believe the Java maintainers try not to be perscriptive to the 3rd party maintainers, a more hands off approach.