[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reloading classes



On Wed, 9 Jun 2004, Jung-joon Kim wrote:

> public class Test {
>     public static void main(String[] args) {
>         G.v().Options().set_verbose(true);
>
>         Scene.v().loadClassAndSupport("Test");
>
>         Scene.v().setSootClassPath("/other/places");
>
>         System.out.println("Now, I want to re-load class");
>
>         // doesn't reload Test at this point due to cache of soot
>         Scene.v().loadClassAndSupport("Test");
>     }
> }

I think it would be safest to G.v().reset().  If you don't, then all sorts
of weird things might happen.

pat