[Soot-list] java_cup source version

Phil Pratt-Szeliga pcpratts at chirrup.org
Mon Aug 13 05:07:39 EDT 2012


Hello,

I am trying to solve an exception [1] with .class file output after
spark has run with use-original-names. I am looking to find the
version of java_cup that soot is using where an exception is possible
at lr_parser line 553. I looked at all the source releases in [2] and
cannot find any line 553 that a NullPointerException could occur.

Or another answer would help me: What jar does soot import to get the
java_cup packages? I cannot find the package when I open any of the
jars I think soot depends on. I do find a java_cup.jar in clara/libs/,
but I don't think my basic (non clara) tests cases are using this.

Thanks for any help,
Phil Pratt-Szeliga
Syracuse University

[1] Writing to sootOutput/edu/syr/pcpratts/localstestcase/TestUseOriginalNames.class
Jasmin:1: Jasmin: exception - <java.lang.NullPointerException> null..
.source
        ^
java.lang.NullPointerException
	at java_cup.runtime.lr_parser.parse(lr_parser.java:553)
	at jasmin.ClassFile.readJasmin(ClassFile.java:1157)
	at jasmin.Main.assemble(Main.java:31)
	at soot.util.JasminOutputStream.flush(JasminOutputStream.java:35)
	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:296)
	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140)
	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
	at java.io.PrintWriter.flush(PrintWriter.java:293)
	at soot.PackManager.writeClass(PackManager.java:961)
	at soot.PackManager.writeOutput(PackManager.java:513)
	at soot.PackManager.writeOutput(PackManager.java:424)
	at soot.Main.run(Main.java:199)
	at soot.Main.main(Main.java:141)
Jasmin: Found 1 errors

[2] http://www.cs.princeton.edu/~appel/modern/java/CUP/


More information about the Soot-list mailing list