Arnab Datta
05/27/2020, 4:02 PMio.mockk.MockKException:
Class cast exception happened.
WARN: 'message' property in ClassCastException provided by JVM is null, autohinting is not possible.
This is most probably happening due to Java optimization enabled.
You can use `hint` before call or use -XX:-OmitStackTraceInFastThrow to disable this optimization behaviour and make autohiniting work.
For example in gradle use:
test {
jvmArgs '-XX:-OmitStackTraceInFastThrow'
}
Is there a similar option for use with maven?