Menu

#166 Cobertura instrumented files are incompatibles with jdk 7

open
nobody
None
5
2014-08-26
2011-09-12
Anonymous
No

When instrumenting java 7 compiled classes, we encounter java.lang.VerifyError as described in this post :
http://t.co/5qwXOkB

Discussion

  • Nobody/Anonymous

    I am having exactly the same problem. First I used Emma for my coverage so I switched to Cobertura but it looks it is not compatible with JDK 7 either. Will this problem be covered anytime soon?

     
  • Anonymous

    Anonymous - 2011-11-16

    I am having exactly the same problem. First I used Emma for my coverage so
    I switched to Cobertura but it looks it is not compatible with JDK 7
    either. Will this problem be covered anytime soon?

     
  • Anonymous

    Anonymous - 2012-03-09

    Having the same fail when compiling java-7 with maven.

    Expecting a stackmap frame at branch target 782 in method dk...setLoginInformation(Ljava/lang/String;Ljava/lang/String;)V at offset 43

    I want to answer this issue: that's because the jar version is not correct in classpath of cobertura-instrument.bat, java -cp "%COBERTURA_HOME%cobertura.jar; ...

    See http://stackoverflow.com/questions/10869127/maven-build-causes-verifyerror-with-java-1-7 for a workaround: just use -XX:-UseSplitVerifier argument.

     

    Last edit: Anonymous 2013-12-04

Log in to post a comment.