From: Grzegorz L. <ha...@gm...> - 2005-05-21 18:28:39
|
There is a bug in class net.sourceforge.cobertura.coveragedata.ClassData in method getSourceFileName(),=20 Instead of=20 =09=09=09int firstDollarSign =3D getName().indexOf('$'); there should be =09=09=09int firstDollarSign =3D getBaseName().indexOf('$'); Grzegorz On 5/21/05, Jeremy Thomerson <je...@th...> wrote: > Elliott, > I haven't seen it, but can look into it in the next few days. Could yo= u > file it in Tracker so I don't overlook it? >=20 > Thanks, > Jeremy >=20 > ----- Original Message ----- > From: "Elliotte Harold" <el...@me...> > To: <cob...@li...> > Sent: Saturday, May 21, 2005 6:12 AM > Subject: Re: [Cobertura-devel] Error using Cobertura 1.3 >=20 >=20 > > Elliotte Harold wrote: > > > I'm getting a weird error in Cobertura 1.3 I didn't see previously: > > > > > > [cobertura-report] WARN getCCN, Cannot find files to compute CCN, > > > > file=3D/Users/elharo/Projects/Jaxen/src/java/main/org/jaxen/expr/Identity= Set$I > dentityWrapp.java, > > > recursive=3Dfalse > > > [cobertura-report] Exception in thread "main" > > > java.lang.StringIndexOutOfBoundsException: String index out of range:= 30 > > > > > > > More details: > > > > [cobertura-report] WARN getCCN, Cannot find files to compute CCN, > > > file=3D/Users/elharo/Projects/Jaxen/src/java/main/org/jaxen/expr/Identity= Set$I > dentityWrapp.java, > > recursive=3Dfalse > > [cobertura-report] Exception in thread "main" > > java.lang.StringIndexOutOfBoundsException: String index out of range: 3= 0 > > [cobertura-report] at java.lang.String.substring(String.java:1441) > > [cobertura-report] at > > > net.sourceforge.cobertura.coveragedata.ClassData.getSourceFileName(ClassD= ata > .java:255) > > [cobertura-report] at > > > net.sourceforge.cobertura.reporting.html.HTMLReport.generateTableRowForCl= ass > (HTMLReport.java:667) > > [cobertura-report] at > > > net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverview(HTML= Rep > ort.java:361) > > [cobertura-report] at > > > net.sourceforge.cobertura.reporting.html.HTMLReport.generateOverviews(HTM= LRe > port.java:234) > > [cobertura-report] at > > > net.sourceforge.cobertura.reporting.html.HTMLReport.<init>(HTMLReport.jav= a:7 > 2) > > [cobertura-report] at > > net.sourceforge.cobertura.reporting.Main.main(Main.java:161) > > > > > > -- > > Elliotte Rusty Harold el...@me... > > XML in a Nutshell 3rd Edition Just Published! > > http://www.cafeconleche.org/books/xian3/ > > http://www.amazon.com/exec/obidos/ISBN=3D0596007647/cafeaulaitA/ref=3Dn= osim > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Oracle Space Sweepstakes > > Want to be the first software developer in space? > > Enter now for the Oracle Space Sweepstakes! > > http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |