[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soot-list
Subject:    [Soot-list] class path problem
From:       jlhotak () cs ! mcgill ! ca (Jennifer Lhotak)
Date:       2005-06-16 10:05:21
Message-ID: Pine.LNX.4.44.0506161004180.12774-100000 () string ! CS ! McGill ! CA
[Download RAW message or body]

Hi,

You can use retrieveActiveBody() which will build the method body and
return or just return it if its already built.

Jennifer

On Wed, 15 Jun 2005, Jasen Carrol wrote:

> Hi,
>
> Thanks Jennifer.
>
> I've run into another issue. After I load one of my
> classes as a SootClass and access one of its methods,
> the ActiveBody of that method is null. Most of the
> other fields appear to be set correctly.
>
> Is there a way I can create a Body based on my source
> class file without having to override
> internalTransform(...)?
>
> Thanks again,
> Jasen
>
>
>
>
> > > Options.v().set_soot_classpath("myClassDir");
> > > Scene.v().loadClassAndSupport("myClassName");
>
> --- Jennifer Lhotak <jlhotak@cs.mcgill.ca> wrote:
>
> > Hi,
> >
> > Usually you don't need the .class part in the
> > classname.
> > So try making myClassName = test1 instead of
> > test1.class
> >
> > Jennifer
> >
> > On Tue, 14 Jun 2005, Jasen Carrol wrote:
> >
> > > Hi,
> > >
> > > I'm new to soot and I want to load some java
> > classes
> > > off the disk programmatically. I tried doing the
> > > following:
> > >
> > > Options.v().set_soot_classpath("myClassDir");
> > > Scene.v().loadClassAndSupport("myClassName");
> > >
> > >
> > > However I get the following exception when I run
> > my
> > > program:
> > >
> > > java.lang.RuntimeException: couldn't find class:
> > > test1.class (is your soot-class-path set
> > properly?)
> > >
> > >
> > > Is there antoher way to do this or am I simply
> > messing
> > > up some details? I would appreciate any help.
> > >
> > > Thanks,
> > > Jasen
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > > _______________________________________________
> > > Soot-list mailing list
> > > Soot-list@sable.mcgill.ca
> > >
> >
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> > >
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic