[Soot-list] Problem in adding methods to newly created class from existing methods in Java classes
Eric Bodden
bodden at st.informatik.tu-darmstadt.de
Fri Feb 25 09:54:42 EST 2011
Hello.
I know that Soot can be frustrating at times because there are many
different ways in which it can (but maybe should not) be used.
It would help a big deal if you could post your source code here, then
we could probably see what mistake you are making.
Cheers,
Eric
On 25 February 2011 14:42, RASIKA LIMJE <rasika1103 at gmail.com> wrote:
> Hello,
> I'v recently studied soot and found it interesting. I was trying to
> explore it. I tried creating new class using SootClass and other Soot
> classes. I am being able to create class and add fields from existing java
> files( the simple working java codes that i had written earlier). However I
> am not being able to add methods from those classes. It is giving me a
> NullPointerException whenever I am trying to do it by different ways. I
> tried using getMethodSource() and then the ActiveBody, I tried
> GetActiveBody() or RetrieveActiveBody() but the code is not being able to
> get Active body of Methods in my existing (running) Java code.
> I'm stuck up on the same thing since many days so finally trying to
> get some outside help. Please help me out. I'm losing my morale.
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
--
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
More information about the Soot-list
mailing list