Unexpected exception

23 views
Skip to first unread message

saswat

unread,
Mar 8, 2011, 4:19:41 PM3/8/11
to tamiflex-discuss
Hello,

One of the lines in my reflection log file (of antlr in dacapo
benchmark) is:

Constructor.newInstance;<sun.reflect.GeneratedConstructorAccessor
$HASHED$79117e4cb29a55aed656c999723cbcc51c30c412: void
<init>()>;sun.reflect.MethodAccessorGenerator$1.run;381;

When I run spark using this reflection log, I get the following
exception.
Exception in thread "main" java.lang.RuntimeException: Unknown method
for signature: <sun.reflect.GeneratedConstructorAccessor$HASHED
$60d86b497701dee16a597d35d304a6144f2c1592: void <init>()>
at
soot.jimple.toolkits.reflection.ReflectionTraceInfo.<init>(ReflectionTraceInfo.java:
98)
...

It seems to me that it is a pretty common situation--the constructor
of a generated Constructor object is getting called. I expected Spark
to ignore such lines.

Is it a bug or I am missing some settings? I am using soot 2.4 and
dacapo-2006-10-MR2.jar.

Thanks,
Saswat

Eric Bodden

unread,
Mar 9, 2011, 5:06:51 AM3/9/11
to tamiflex...@googlegroups.com, saswat
Hi Saswat.

The folder that contains the dumped classes should contain a class
sun.reflect.GeneratedConstructorAccessor$HASHED$79117e4cb29a55aed656c999723cbcc51c30c412.

Can you double-check this?

You should be feeding this folder as input to Soot - then things
should just work.

Eric

--
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt

Reply all
Reply to author
Forward
0 new messages