EMMA marks code in catch completely red
Brought to you by:
vlad_r
I have code like this:
try
{
do something
}
catch (Exception e)
{
do something for error
}
EMMA marks the whole catch red:
catch (Exception e) <<< MARKED RED
{ <<< MARKED RED
do something for error <<< MARKED RED
} <<< MARKED RED
Yet I can set a breakpoint on the "do something for error" line, run the same test, and see it stop on the line. And the red is still there in the window for the catch--so clearly the code is executing.
Why does EMMA mark code that's clearly executing as 0% covered?
Screenshots are available here: http://jimshowalter.blogspot.com/2009/08/selecting-coverage-tool.html