|
These three files form a minimal project that will recreate the issue. Put Dummy.java in src/main/java/mrjeffjohnston. Put DummyTest.java in src/test/java/mrjeffjohnston. Run "mvn cobertura:cobertura" to recreate the issue. A stack trace is thrown with JDK 1.6.0_14 and the coverage report is all 0%. With JDK 1.6.0_13 there is no stack trace and the coverage report is correct at 100%
Jeff Johnston made changes - 09/Jun/09 02:32 PM
Evgeny Minkevich made changes - 11/Jun/09 01:09 AM
I do have the same issue with update 14 and xp sp2. Cobertura 1.9.2 fixes the problem with java 1.6.0.14 (see the news section of http://cobertura.sourceforge.net I added this dependency to my applications' pom: <dependency> <groupId>net.sourceforge.cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.9.2</version> </dependency> It seems to fix the problem. This issue is fixed in version 2.3 of the plugin which uses Cobertura 1.9.2 as Paul mentions above.
Jeff Johnston made changes - 10/Jul/09 03:56 AM
Adding for the sake of bug repository search terms: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I was wrong when I said that the issue was OS dependent. Actually the problem is with JDK 1.6.0_14. There is no problem with JDK 1.6.0_13. The issue is the same on both Windows and Linux.