我想将spockframework从1.0更新到1.1,因为这个修复https://github.com/spockframework/spock/pull/100
该应用程序运行于: 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
答案 0 :(得分:0)
我通过在BuildConfig.groovy文件中添加useSplitVerifier解决了这个问题。
所以构建配置文件如下所示:
grails.project.fork = [
test : [... useSplitVerifier: true ...],
]
...
grails.project.dependency.resolution = {
...
dependencies {
...
test ("org.spockframework:spock-core:1.1-groovy-2.3")
...
}
...
}