[Soot-list] SourceLnPosTag bug?

Jochen Huck jochen.huck at student.kit.edu
Thu Mar 3 05:55:53 EST 2011


Hi,
I'm running soot with -src-prec java. This is a minimal example (I'm 
using the soot 2.4 release but the result is the same using the nightly 
build) :

Source:
1 public class LineNumberTest {
2    public static void main(String[] args) {
3        foo();
4    }
5    public static int foo() {
6        return 42;
7    }
8 }

Jimple:
public class LineNumberTest extends java.lang.Object {
//...
     public static int foo() {
         int temp$0;
         temp$0 = 42;
         return temp$0;
     }
//...
}

SourceLnPosTag says: line number 5 for unit tmp$0 = 42. I would expect 
it to be 6.

Jochen





More information about the Soot-list mailing list