I’m using EclEmma for coverage analysis.
My Java code includes a synchronized(MyClass.class) {} block.
EclEmma says it is only partially covered, event though I’ve got a unit test in which one thread gets access and another thread is blocked.
Is it possible to get full coverage of synchronized using EclEmma?
Can I annotate the code in some way to tell EclEmma to give this line full coverage?
Kind regards
Roger
I am not sure it is possible to get a full coverage, since issue 2939804 reports:
Maybe a different tool (like Cobertura) would yield a different result? (I have not tested it recently).
Update December 2012 (more than 2 years later):
Nathan D Ryan reports: