Is the stack trace below a bug or normal behavior....
If it is normal behavior, shouldn't emma just be throwing an Ant BuildException saying please clean and rebuild(and explaining what is the problem). I typically only see stack traces from ant when there is a bug, and I don't think this is a bug???
[report] 2 file(s) read and merged in 20 ms
[report] com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtim
e version of class [biz.xsoftware.test.router.TestOsgiWrapper$JarFilter] in the
coverage data is not consistent with the version of this class in the metadata,
possibly because stale metadata is being used for report generation.
[report] at com.vladium.emma.report.ReportDataModel.getView(ReportDataMod
el.java:95)
[report] at com.vladium.emma.report.AbstractReportGenerator.initialize(Ab
stractReportGenerator.java:207)
[report] at com.vladium.emma.report.txt.ReportGenerator.process(ReportGen
erator.java:64)
[report] at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.
java:254)
[report] at com.vladium.emma.Processor.run(Processor.java:54)
[report] at com.vladium.emma.report.reportTask.execute(reportTask.java:77
)
[report] at com.vladium.emma.emmaTask.execute(emmaTask.java:57)
[report] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[report] at org.apache.tools.ant.Task.perform(Task.java:364)
[report] at org.apache.tools.ant.Target.execute(Target.java:341)
[report] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[report] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[report] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
)
[report] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[report] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[report] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[report] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is the stack trace below a bug or normal behavior....
If it is normal behavior, shouldn't emma just be throwing an Ant BuildException saying please clean and rebuild(and explaining what is the problem). I typically only see stack traces from ant when there is a bug, and I don't think this is a bug???
[report] 2 file(s) read and merged in 20 ms
[report] com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtim
e version of class [biz.xsoftware.test.router.TestOsgiWrapper$JarFilter] in the
coverage data is not consistent with the version of this class in the metadata,
possibly because stale metadata is being used for report generation.
[report] at com.vladium.emma.report.ReportDataModel.getView(ReportDataMod
el.java:95)
[report] at com.vladium.emma.report.AbstractReportGenerator.initialize(Ab
stractReportGenerator.java:207)
[report] at com.vladium.emma.report.txt.ReportGenerator.process(ReportGen
erator.java:64)
[report] at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.
java:254)
[report] at com.vladium.emma.Processor.run(Processor.java:54)
[report] at com.vladium.emma.report.reportTask.execute(reportTask.java:77
)
[report] at com.vladium.emma.emmaTask.execute(emmaTask.java:57)
[report] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[report] at org.apache.tools.ant.Task.perform(Task.java:364)
[report] at org.apache.tools.ant.Target.execute(Target.java:341)
[report] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[report] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[report] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
)
[report] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[report] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[report] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[report] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
It's normal behavior, but it shouldn't be. I will need to add an RFE for wrapping certain EMMA exceptions as BuildExceptions in all ANT task runners.
Vlad.