From: Mark D. <Mar...@sa...> - 2005-03-22 16:01:03
|
FYI line 186 is a call to String.replaceAll(), which is new in jdk1.4. =20 It might be possible to compile your classes with 1.3 (or use 1.4 and = specify a 1.3 source and target), instrument your classes using 1.4, run = your tests using 1.3, then generate the coverage reports using 1.4. It = seems like it would take some annoying fiddling with ant to get that to = work correctly. =20 The other option is to modify Cobertura to work with 1.3. That's not = something I'm against... I was just hoping we could avoid it. -Mark =20 ________________________________ From: cob...@li... = [mailto:cob...@li...] On Behalf Of = Woodward, John Sent: Tuesday, March 22, 2005 10:48 AM To: cob...@li... Subject: [Cobertura-devel] Using jdk 1.3? =09 =09 I have a project that requires jdk1.3. Is there any way to use = Cobertura with 1.3? When I do, I consistently get the following = exception: =20 java.lang.NoSuchMethodError at = org.apache.tools.ant.Project.executeTarget(Project.java:1246) at = org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) --- Nested Exception --- java.lang.NoSuchMethodError at = net.sourceforge.cobertura.ant.CommonMatchingTask.getJava(CommonMatchingTa= sk.java:186) at = net.sourceforge.cobertura.ant.CommonMatchingTask.saveArgs(CommonMatchingT= ask.java:156) at = net.sourceforge.cobertura.ant.InstrumentTask.coverage(InstrumentTask.java= :101) at = net.sourceforge.cobertura.ant.InstrumentTask.execute(InstrumentTask.java:= 149) at = org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at = org.apache.tools.ant.Project.executeTarget(Project.java:1237) at = org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) =20 Alternatively, with multiple jdk's installed, is there any way I can = specify a 1.3 compile for my source, and run Cobertura with 1.4 or 1.5? =20 Thanks! =20 John =20 |