Menu

#114 EMMA marks code in a finally in red and yellow

open
CORE (51)
5
2009-08-09
2009-08-09
No

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?

Discussion

  • Jim Showalter

    Jim Showalter - 2009-08-09

    Forgot to mention that nullSafeClose is a void method.

     

Log in to post a comment.