码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2014-06-15 16:56:08      阅读:476      评论:0      收藏:0      [点我收藏+]

标签:java   java test   test unit   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://stackoverflow.com/questions/15122890/java-lang-verifyerror-expecting-a-stackmap-frame-at-branch-target-jdk-1-7

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

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

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

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

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

标签:java   java test   test unit   powermock   easymock   

原文地址:http://blog.csdn.net/maijunjin/article/details/30467117

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!