> That's because starting JVM 22, the previous so-called "dynamic attachment of agents" is put behind a flag.
Ok am I being stupid or is the pragmatic solution not to just to enable this flag for test runs etc. and leave it off in prod?
I think the problem is that it's on his users to enable this flag, not something that can be done by Mockito automatically.
I think the problem is that it's on his users to enable this flag, not something that can be done by Mockito automatically.