r/java • • Jan 14 '23

Mockito 5.0.0 released, requires Java 11

164 Upvotes

13 comments sorted by

View all comments

72

u/Enough-Ad-5528 Jan 15 '23

Should have baselined on Java 17 instead of 11. If you can run on 11, you can almost certainly run on 17 with very little additional effort. Spring 6 took the right decision here.

17

u/harshit181 Jan 15 '23

Unlike spring,which a major component of application ,mockito is mostly used to unit testing.Agreed that any application which can run on java 11 will run on java 17,there is still an overhead to update java version.