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.

25

u/qmunke Jan 15 '23

The release notes hint at why they haven't made this leap yet:

Most notably, JDK 17 made some changes which are incompatible with the current subclass mockmaker.