mockito - java.lang.VerifyError:分支目标处的堆栈映射帧不一致
16lz
2021-01-22
java.lang.VerifyError: Inconsistent stackmap frames at branch target 775
Exception Details:
Location:
com/../..../class.method()
Reason:
Type 'java/sql/Connection' (current frame, locals[6]) is not assignable to 'java/lang/Class' (stack map, locals[6])
This is what I get when I try to execute junit.
这是我尝试执行junit时得到的结果。
junit 4.8.1 org.mockito 1.8.5 org.powermock 1.3.9 javassist 3.12.0-GA
junit 4.8.1 org.mockito 1.8.5 org.powermock 1.3.9 javassist 3.12.0-GA
6 个解决方案
#1
Which JDK version are you using?
您使用的是哪个JDK版本?
I had a similar issue and solved it by adding -noverify to the JVM arguments.
我有一个类似的问题,并通过将-noverify添加到JVM参数来解决它。
更多相关文章
- Java开发水吧点饮品系统(顶层父类对象做接口参数)
- java返回值是list的时候获取list的参数类型
- Java反射---getGenericSuperclass和ParameterizedType参数化类型
- 转发可变数量的参数以通过椭圆运算符接受可变数量的参数
- 准备语句SQL异常“无输入参数”
- javascript(六)js事件绑定浏览器兼容解决方案 attachEvent addEve
- 使用Java中的Scala:将函数作为参数传递
- 如何在命令中传递对象参数?
- java中多线程安全问题产生&解决方案——同步方法