3
我使用JMock的& JDave unfinalizer,這是罰款與Java 6,但移動到Java 7的使用我的單元測試後jdave-unfinalizer失敗,這樣的錯誤:jdave-unfinalizer的Java 7 stackmap框架
java.lang.VerifyError: Expecting a stackmap frame at branch target 49
Exception Details:
Location:
com/hhi/domain/model/common/DomainAddressTestUF.testEquals()V @42: if_icmpne
Reason:
Expected stackmap frame at this location.
Bytecode:
0000000: b800 2e4c 2b2b b800 a22b 2bb6 00bc b800
0000010: c0bb 0009 592b b700 33b6 0022 4d2b 2cb8
0000020: 00a2 2bb6 00c4 2cb6 00c4 a000 0704 a700
0000030: 0403 b800 c02b 2cb6 00bc b800 c0bb 0009
0000040: 592b b700 3312 c6b6 00ca b600 224e 2b2d
0000050: b800 cd2b 2db6 00bc b800 d0b1
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at org.junit.internal.builders.SuiteMethodBuilder.hasSuiteMethod(SuiteMethodBuilder.java:20)
at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:13)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
有沒有人用Java 7的jdave-definalizer?
不,但我遇到了JDK7 stackmap框架問題。看看http://stackoverflow.com/questions/16905947/java-lang-verifyerror-when-using-emma-cobertura-on-jdk-1-7。不是同一個問題,但它可能會有幫助。 –
更多信息:http://chrononsystems.com/blog/java-7-design-flaw-leads-to-huge-backward-step-for-the-jvm –
謝謝你,使用-XX:-UseSplitVerifier幫助了我。 – Anton