mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

Unit tests fail with Cobertura during site build #69

Open andham opened 7 years ago

andham commented 7 years ago

Several errors in unit tests that only occur with Cobertura during site build. See Travis output for exemple: https://travis-ci.org/mojohaus/jaxb2-maven-plugin/builds/206997596 Strangely not all builds are marked as bad in Travis although the error happens.

lennartj commented 6 years ago

We will have to move over from Cobertura (to - say - Clover) to handle Java 8 compliance. There are still quite a few issues with Java 8 compliance in Cobertura - and it does not properly handle Java 9 syntax as well.

The Java 9 transition is rather important, and it seems that the code coverage frameworks are not quite Java 9 compliant yet.

lennartj commented 6 years ago

Hm. When I build with Java 8, I get no errors. Instead I get an error log line, which I believe stems from Cobertura writing something to the System.err instead of System.out.

[ERROR] Dec 02, 2017 11:27:54 PM net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler loadCoverageData
INFO: Cobertura: Loaded information on 71 classes.