Menu

#43 Catch block with method that throws an exception

closed-rejected
CORE (51)
5
2005-09-11
2005-07-20
Kurt Roekle
No

There seems to be a problem when a method that is
called from a catch block throws an exception of its
own. The method itself shows up as being covered, but
the none of the lines in the catch block are shown as
being covered. I put system out message in the catch
block, so I know it's being called. I tested, by
taking out the throw of the exception and then the
lines in both blocks showed up as being covered. I've
tested this with both 2.0.5312 and 2.1.5320 on IBM's
JDK 1.4.1

Discussion

  • Vlad Roubtsov

    Vlad Roubtsov - 2005-08-28

    Logged In: YES
    user_id=1013207

    This is a known issue (the entire basic block containing the
    method call is invalidated because the block does not
    complete normally).

    The solution is to execute this code so that the method in
    question can complete normally. Presumably, the code was
    written so it *could* be executed like that.

    The basic block feature described above is how EMMA was
    designed to work. The remainder is covered by this issue:
    http://sourceforge.net/tracker/index.php?func=detail&aid=975679&group_id=108932&atid=651897

     
  • Vlad Roubtsov

    Vlad Roubtsov - 2005-08-28
    • labels: --> CORE
    • assigned_to: nobody --> vlad_r
    • status: open --> pending-rejected
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 13 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-rejected --> closed-rejected
     

Log in to post a comment.