Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJCOVERAGE-5 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPJCOVERAGE-5 Summary: NumberFormatException while parsing coverage.xml Type: Bug Status: Open Priority: Major Original Estimate: 20 minutes Time Spent: Unknown Remaining: 20 minutes Project: maven-jcoverage-plugin Versions: 1.0.2 Assignee: Emmanuel Venisse Reporter: Steffen Pingel Created: Mon, 12 Jan 2004 6:56 AM Updated: Mon, 12 Jan 2004 6:56 AM Description: While running "maven jcover" I got an error message during instrumentation: jcoverage:on: [mkdir] Created dir: /home.local/warper/projects/poa/gcover/target/jcoverage/classes instrumenting the class-files... jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/ jcoverage is licensed under the GNU General Public License jcoverage comes with ABSOLUTELY NO WARRANTY instrumenting 17 classes to /home.local/warper/projects/poa/gcover/target/jcoverage/classes [instrument] WARN instrument, no source line numbers found for: gcover.Builder$1, compile with debug="yes". Copying 4 files to /home.local/warper/projects/poa/gcover/target/jcoverage/classes/gcover/output The resulting entry in coverage.xml looks like this: <class name="gcover.Builder$1"> <file name="gcover/Builder.java"/> <line rate="1.0"/> <branch rate="NaN"/> <methods> </methods> <valid lines=""/> </class> When the jcoverage-maven-plugin tries to parse the "NaN" value I get an exception: test:test: [junit] Running gcover.FileInfoTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,17 sec jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/ jcoverage is licensed under the GNU General Public License jcoverage comes with ABSOLUTELY NO WARRANTY Generate report for /home.local/warper/projects/poa/gcover/target/jcoverage/coverage.xml file. OutputDir = /home.local/warper/projects/poa/gcover/target/docs/jcoverage java.lang.NumberFormatException: For input string: "?" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1213) at java.lang.Double.valueOf(Double.java:184) at java.lang.Double.<init>(Double.java:259) at org.apache.maven.jcoveragereport.CoverageReport.generatePercentResult(CoverageReport.java:495) at org.apache.maven.jcoveragereport.CoverageReport.generateSourceFile(CoverageReport.java:427) at org.apache.maven.jcoveragereport.CoverageReport.generateSourceFiles(CoverageReport.java:393) at org.apache.maven.jcoveragereport.CoverageReport.generate(CoverageReport.java:96) at org.apache.maven.jcoveragereport.CoverageReportGenerator.execute(CoverageReportGenerator.java:106) I guess catching the NumberFormatException (and falling back to 0 or something) should do the job. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
