java.lang.VerifyError 在使用PowerMock EasyMock进行单元测试

java.lang.VerifyError:Stack map does not match the one at exception handler 385 in method ... at offset 377

我使用的 jar包( 下面是认为跟这个问题有关系的jar包)如下:

antrl-3.3-complete.jar

cglib-2.2.jar

cglib-nodep-2.2.2.jar

easymock-3.2.jar

mockito-all-1.9.5.jar

persistent-testtool.jar

powermock-easymock-1.5.4-full.jar

pwoermock-mockito-1.5.4-full.jar

javassist-3.17.1-GA.jar

问题出在javassist-3.17.1-GA.jar包上 , 把它从classpath中去掉,并加入javassist-3.18.1-GA.jar

参考资料:

http://*.com/questions/15122890/java-lang-verifyerror-expecting-a-stackmap-frame-at-branch-target-jdk-1-7

http://*.com/questions/15253173/how-safe-is-it-to-use-xx-usesplitverifier

https://code.google.com/p/powermock/issues/detail?id=355(这里面有提到可能是javassist 包的问题)

http://*.com/questions/100107/reasons-of-getting-a-java-lang-verifyerror

java.lang.VerifyError 在使用PowerMock EasyMock进行单元测试,布布扣,bubuko.com

java.lang.VerifyError 在使用PowerMock EasyMock进行单元测试

上一篇:《Javascript权威指南》学习笔记之十六:BOM之源---BOM基本应用


下一篇:c语言实现bit反转的最佳算法-从msb-lsb到lsb-msb