Cobertura & Java 7 support

2019-01-23 02:08发布

问题:

Any ideas when cobertura will support java 7?

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

We preferred cobertura over emma and other code coverage tools and looks like we have to redo all those again, now that none of them support java 7 yet.

Thanks

回答1:

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



回答2:

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

-XX:-UseSplitVerifier

I got it from here.



回答3:

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.



回答4:

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".



回答5:

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