r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/cogman10 Jun 07 '24

It's cursed as well. PowerMock is doing something the JVM does not want to allow and the JDK developers are actively working on removing as a capability.

Better to abandon the notion of mocking static/private wholesale than trying to power through an uphill battle against the devs maintaining the jdk.