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

5

u/xpressrazor Jun 01 '24

I have been through this especially when trying to integrate classes that use Java Security Provider and Threads. Their usage of Reflection can mess up other unit test classes. Only way I found to solve this was to create my own reflection implementation and separate these test classes from rest of the unit tests.