From: Mark D. <Mar...@sa...> - 2005-04-07 14:36:57
|
The log4j properties file is really the only way to change the level of = information printed. I'm suppose you could run your code in a debugger, = but I'm not sure if that would accomplish very much. =20 About the syncrhonized block thing... that's very possible, I'll try to = take a look at that sometime. -Mark =20 ________________________________ From: Martha Yanez [mailto:my...@us...]=20 Sent: Thursday, April 07, 2005 10:34 AM To: Mark Doliner Cc: cob...@li... Subject: RE: [Cobertura-devel] Report Question =09 =09 Hi Mark,=20 I'll try reproducing the the finally error but in case I'm not = sucessful are there any traces that I can take with my current code = (Grzegorz indicated the debug option in log4j properties file but I = don't see much recorded when I run test).=20 =09 I've noticed the end bracket being counted as zero in almost every = synchronized block that I've seen and almost all of them are not at the = end of a method. I think there is a problem with that particular key = word/block=20 =09 Thanks=20 =09 Martha Yanez (919) 224-1320 / 8-687-1320 New Notes id: Martha Yanez/Raleigh/IBM my...@us... =09 =09 =09 =09 =09 "Mark Doliner" <Mar...@sa...>=20 Sent by: cob...@li...=20 04/07/2005 09:27 AM=20 To Martha Yanez/Raleigh/IBM@IBMUS, <cob...@li...>=20 cc Subject RE: [Cobertura-devel] Report Question =09 > Hello all=20 > I've gotten reports to run (many thanks to Grzegorz) and am slowly = starting to analyze some results most of which look accurate.=20 > However I'm seeing some odd items like the following:=20 >=20 > 353 finally=20 > 354 {=20 > 355 0 if (allOK)=20 > 356 { // Life is WONDERFUL!!! Issue MEM started = message=20 > 357 3 status =3D Status.STATUS_RUNNING;=20 > 358 = xLogger.message(IRecordType.TYPE_INFO,CLASSNAME,methodName,"DYKME9016I");= =20 > 359 }=20 > 360 else=20 > 361 {=20 > 362 0 status =3D Status.STATUS_FAILED; // = very important to set=20 >=20 > Line 355 is highlited in pink and show zero coverage yet it was = definitely executed as indicated by line 357 and the appearence of the = message=20 > on my console.=20 =09 That definitely shouldn't be happening... If you're able to reproduce = this in a small, hello world-like program then it would be great if you = could file a bug report about it. =09 > Another one is:=20 > 246 3 synchronized(this)=20 > 247 {=20 > 248 3 if (status =3D=3D STATUS_STARTING)=20 > 249 {=20 > 250 3 status =3D STATUS_STEADY_STATE;=20 > 251 3 threadSuspended =3D false;=20 > 252 3 notify();=20 > 253 }=20 > 254 0 }=20 >=20 > Line 254 which is simply the closing bracket of a block that has been = executed is showing a zero count.=20 =09 For this one, line 254 should probably not be considered a line of = code. Is this block at the end of a method? At the end of methods that = return void, I belive a "return" instruction is added in the bytecode, = even if one is not explictly stated in the code. Maybe Cobertura is = looking at line 254 as this implicit return instruction? =09 -Mark =09 =09 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real = users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel =09 =09 |