Menu

#73 Paths with indirect exceptions not detected as executed

next release build
open
CORE (51)
5
2014-08-12
2006-12-29
No

EMMA correctly detects the execution of a path that directly throws an exception, but does not detect the execution of a path that calls a method which throws an exception.

EMMA build: EMMA 2.0.5312
JDK or JRE:
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

Using Eclipse 3.1.1 on Linux.

Executed using the following command line:
java emmarun -filter +org.phci.emma.* -report html -sp src -cp build/classes org.phci.emma.EmmaTest

The EmmaTest.java source file is attached.

Discussion

  • Daniel S. Horwitz

    Java source reproducing the defect.

     
  • Daniel S. Horwitz

    Tar of the entire EmmaTest Eclipse project.

     
  • Daniel S. Horwitz

    Logged In: YES
    user_id=1679326
    Originator: YES

    File Added: EmmaTest.tar

     
  • Daniel S. Horwitz

    Logged In: YES
    user_id=1679326
    Originator: YES

    This may be similar to 1566266.

     

Log in to post a comment.