EMMA marks code in a finally in red and yellow
Brought to you by:
vlad_r
I have code like this:
try
{
do some stuff
}
finally
{
AbstractCursor.nullSafeClose(cursor);
}
By the definition of the language, it's impossible to not enter or exit the finally, but they're both marked red, and the close is marked yellow:
try
{
do some stuff
}
finally
{ <<< MARKED RED
AbstractCursor.nullSafeClose(cursor); <<< MARKED YELLOW
} <<< MARKED RED
No exception is thrown from the close.
Why does EMMA do this?
Forgot to mention that nullSafeClose is a void method.
Screenshots are available here:
http://jimshowalter.blogspot.com/2009/08/selecting-coverage-tool.html