简体   繁体   English

java.lang.VerifyError:在使用 mojo 的 Cobertura 的分支目标处期望堆栈图帧

[英]java.lang.VerifyError: Expecting a stackmap frame at branch target with Cobertura using mojo

I am using Cobertura for my code coverage but while running the test cases all of the test cases are getting failed with below error when I run the test cases using a maven build.我将 Cobertura 用于我的代码覆盖率,但是在运行测试用例时,当我使用 Maven 构建运行测试用例时,所有测试用例都失败并出现以下错误。

 Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0x0000000: 033d 11ff ff3e 125b 1102 1fb8 0061 2a2b
    0x0000010: 1102 1f3d 1100 003e c600 1912 5b1c 1d04
    0x0000020: b800 b511 ffff 3e2b b600 bbc0 00b7 a700
    0x0000030: 141d 9b00 0f12 5b1c 1d03 b800 b511 ffff
    0x0000040: 3e01 b500 c012 5b11 0220 b800 61b1  

But when I run the same test cases using Eclipse run as JUnit command it works fine.但是当我使用 Eclipse run as JUnit 命令运行相同的测试用例时,它工作正常。

In Eclipse just Right Click & in in cover configurations & add在 Eclipse 中只需右键单击并在封面配置中添加并添加
-XX:-UseSplitVerifier to the VM Arguments in the arguments tab -XX:-UseSplitVerifier到参数选项卡中的 VM 参数

In my case, using AdoptJDK 11 , I was able to get rid of the error using the -noverify VM argument.在我的情况下,使用AdoptJDK 11 ,我能够使用-noverify VM 参数摆脱错误。 However, Cobertura doesn't support Java 1 :(但是,Cobertura 不支持 Java 1 :(

For Gradle users:对于 Gradle 用户:

test {
    jvmArgs '-noverify'
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.VerifyError:期望分支目标上的stackmap帧 - java.lang.VerifyError: Expecting a stackmap frame at branch target java.lang.VerifyError:期望分支目标73处的堆栈图帧 - java.lang.VerifyError: Expecting a stackmap frame at branch target 73 java.lang.VerifyError:在分支目标29处期待一个堆栈映射框架 - java.lang.VerifyError: Expecting a stackmap frame at branch target 29 java.lang.VerifyError:在分支目标 5 处期望堆栈图帧 - java.lang.VerifyError: Expecting a stackmap frame at branch target 5 线程“ main”中的异常java.lang.VerifyError:在分支目标118处期望一个堆栈映射框架 - Exception in thread “main” java.lang.VerifyError: Expecting a stackmap frame at branch target 118 java.lang.VerifyError:在分支目标处期待一个堆栈映射框架70异常详细信息 - java.lang.VerifyError: Expecting a stackmap frame at branch target 70 Exception Details java.lang.VerifyError:在分支目标 JDK 1.7 处需要堆栈图帧 - java.lang.VerifyError: Expecting a stackmap frame at branch target JDK 1.7 java.lang.VerifyError:期望一个stackmap框架 - java.lang.VerifyError: Expecting a stackmap frame java.lang.VerifyError:在使用 PowerMockRunner 时,在分支处需要一个堆栈图帧 - java.lang.VerifyError: Expecting a stackmap frame at branch, when using PowerMockRunner 字节码验证失败, java.lang.VerifyError: Expecting a stackmap frame at branch target 11 。 分支目标 11 是什么意思? - Byte Code Verification failing with java.lang.VerifyError: Expecting a stackmap frame at branch target 11 . What does branch target 11 means?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM