gpt4 book ai didi

java - 更新spockframework 1.1后出现stockmap错误

转载 作者:行者123 更新时间:2023-12-02 15:47:32 28 4
gpt4 key购买 nike

由于此修复https://github.com/spockframework/spock/pull/100,我想将spockframework从1.0更新为1.1

该应用程序在以下位置运行:
Grails 2.4.5
Java 7

我没有升级grails版本和java的权限。有谁知道一个不错的解决方法?

java.lang.VerifyError: Expecting a stackmap frame at branch target 56
Exception Details:
Location:
grails/test/spock/IntegrationSpec.initTransaction()Lorg/codehaus/groovy/grails/test/support/GrailsTestTransactionInterceptor; @42: ifeq
Reason:
Expected stackmap frame at this location.
Bytecode:
0000000: b800 3d4c 2b12 9932 1257 2b12 9a32 2ab9
0000010: 0074 0200 b900 9d03 004d 2c57 2b12 9e32
0000020: 2c2a b900 7803 00b8 0055 9900 0e2b 129f
0000030: 322c b900 a102 0057 2c12 57b8 005d c000
0000040: 57b0 01b0

最佳答案

我通过在BuildConfig.groovy文件中添加useSplitVerifier解决此问题。

因此,构建配置文件如下所示:

grails.project.fork = [
test : [... useSplitVerifier: true ...],
]
...
grails.project.dependency.resolution = {
...
dependencies {
...
test ("org.spockframework:spock-core:1.1-groovy-2.3")
...
}
...
}

关于java - 更新spockframework 1.1后出现stockmap错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45010560/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com