How do I fix VerifyError when running PowerMock in Java 8
问题 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