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

Re: decompiling inner classes



Oksana I Tkachuk wrote:
> I am analyzing program fragments (sets of classes) and generating Java
> code for them based on analysis results. For inner classes, I need to
> generate them inside their enclosing class.
> 
> Is there info in Soot that allows to answer some questions about inner
> classes, e.g., find inner classes of a class, given a class find its
> enclosing class, manipulate inner classes names?
> 
> I am assuming you had to deal with these issues in Dava.

The Soot bytecode slurper throws away SourceFile, InnerClass, and
ConstantValue attributes. I have a patch that fixes the first two:

  http://cvs.sourceforge.net/viewcvs.py/*checkout*/jcvm/jcvm/soot/soot.patch?rev=1.2

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com