[Soot-list] Jasmin problem - Java 5 related?

mbatch at cs.mcgill.ca mbatch at cs.mcgill.ca
Thu Aug 17 16:12:52 EDT 2006


Hello folks,

I am transforming class files in Soot and have recently been running into
some jasmin errors. Specifically, when writing out the class files I've
seen a "Badly formatted number" error (stacktrace below, @ end of email).
I sort of assume this is due to an improper field/method/class modifier
but I can't be sure since it's deep within the scanner/parser where the
error occurs and the jasmin website is down at the moment so I don't know
what the error truly means.

These transformations that I have written were working fine a few months
ago (java 1.4 for both compiler and vm) but we've recently gotten new
machines and are now using java 1.5 (64bit AMD version).. perhaps there is
a problem with that change? Has anyone had issues with java 5 and the soot
version of jasmin?

Thanks for the help,

Michael Batchelder

Jasmin:4: JAS Error Badly formatted number.

^
jas.jasError: Badly formatted number
	at jasmin.Scanner.next_token(Scanner.java:215)
	at jasmin.parser.scan(parser.java:589)
	at java_cup.runtime.lr_parser.parse(lr_parser.java:563)
	at jasmin.ClassFile.readJasmin(ClassFile.java:1052)
	at jasmin.Main.assemble(Main.java:24)
	at soot.util.JasminOutputStream.flush(JasminOutputStream.java:35)
	at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
	at java.io.PrintWriter.flush(PrintWriter.java:120)
	at soot.PackManager.writeClass(PackManager.java:876)
	at soot.PackManager.writeOutput(PackManager.java:438)
	at soot.PackManager.writeOutput(PackManager.java:365)
	at soot.Main.run(Main.java:204)
	at soot.Main.main(Main.java:146)
	at soot.jbco.Main.main(Main.java:194)
Jasmin: Found 1 errors



More information about the Soot-list mailing list