Cobertura & Java 7 support

前端 未结 5 989
失恋的感觉
失恋的感觉 2020-12-14 15:42

Any ideas when cobertura will support java 7?

Found http://sourceforge.net/tracker/index.php?func=detail&aid=3295711&group_id=130558&atid=720018

相关标签:
5条回答
  • 2020-12-14 16:12

    Further to Jagger's comment, it looks like this is now being actively worked on for the next release - see:

    https://github.com/cobertura/cobertura/commit/b303fdc94851088a3c8699651770faef33180924

    with the comment "Fix java 7 stack map issue".

    0 讨论(0)
  • 2020-12-14 16:20

    Cobertura 2.0.3 supports Java 7, the cobertura-maven-plugin version 2.6 which uses this version has been just released

    0 讨论(0)
  • 2020-12-14 16:28

    I was able to get it to work by adding the following argument:

    -XX:-UseSplitVerifier

    I got it from here.

    0 讨论(0)
  • 2020-12-14 16:30

    Old thread, but my answer may be useful: Cobertura does support the latest Java versions and is actively maintained. eCobertura (the Eclipse plug-in for Cobertura) hasn't been maintained since 2010, but Cobertura itself is still maintained.

    eCobertura will not run with Java 7 or higher, but Cobertura will.

    If you are looking for coverage reports (suc h as the ones that eCobertura used to provide), just run the Cobertura maven plugin with mvn cobertura:cobertura and check the HTML report under target/site/cobertura/index.html

    0 讨论(0)
  • 2020-12-14 16:33

    I think the answer is: it won't. There is discussion on the mailing list that the project is not being maintained, and there are Java 7 bugs that have been open for a year. On the bright side, JaCoCo functionality is comparable and is being actively maintained.

    0 讨论(0)
提交回复
热议问题