[Soot-list] Inconsistent transformation results in Eclipse plugin

Sunny sunfire001 at gmail.com
Wed May 31 17:32:55 EDT 2006


Hi,

I ran the Soot transformation in Eclipse without adding any of my own
phases, simply like this:

public static void main(String[] args) {

      if (args.length == 0) {
           System.err.println("Usage: java InstrumentationDriver [options]
classname");
           System.exit(0);
      }
      soot.Main.main(args);
}

Initially I transformed my program directly to class files by using the
arguments: -d ./src class1 class2 ... The program worked ok after the
transformation.

And later, I first transformed my program to .jimple files by using the
command: java soot.Main -d ./atm -f jimple -p jb use-original-names:true
-app MainClass. This step was done in DOS. And then, the generated .jimple
files were transformed to class files by the arguments: -d ./src -src-prec J
class1 class2... (used the same driver code as above). Both transformations
were performed normally but when I ran the transformed program, the
following exception occurred:

java.lang.NoSuchMethodError: atm.Withdrawal$1
.<init>(Latm/Withdrawal;Latm/ATM;Latm/Card;Latm/Transaction;Latm/Balances;)V
 at atm.Withdrawal.completeTransaction(atm\Withdrawal.java)
 at atm.Transaction.performTransaction(atm\Transaction.java)
 at atm.Session.performSession(atm\Session.java)
 at atm.ATM.run(atm\ATM.java)
 at java.lang.Thread.run(Unknown Source)

Could someone tell me what is the problem please? Thanks in advance!

Nice day,

Sunny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20060531/227c0470/attachment.htm


More information about the Soot-list mailing list