I want to use PowerMockerRule
in my unit tests so that I can use PowerMockito in them while I run them with Spring's JUnit Runner. However, when I add the rule to my test, I get java.lang.VerifyError
.
java.lang.VerifyError: Expecting a stackmap frame at branch target 47
Exception Details:
Location:
com/sample/package/MyClass.<init>(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V @25: if_icmpge
Reason:
Expected stackmap frame at this location.
Bytecode:
0x0000000: 2a2b 2c01 c000 32b7 0050 2d3a 0419 04be
0x0000010: 3605 0336 0615 0615 05a2 0016 1904 1506
0x0000020: 323a 072a 1907 b600 4984 0601 a7ff e9b1
0x0000030:
What I've done so far has been to update my javassist dependency to 3.20.0-GA as according to my initial searches, it's usually the problem. However, it still doesn't resolve the issues for me. Any other ideas?