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

Re: Static field constant initializers



Ondrej Lhotak wrote:
> As far as I know, Soot does not currently handle these ConstantValue
> attributes. However, coffi (the part of Soot that loads classes) seems
> to support them, so I don't think it would be too hard to pass the
> information up from coffi into a SootField. I would suggest looking
> in for uses of soot/src/soot/coffi/ConstantValue_attribute.java and
> in soot/src/soot/coffi/Util.java. I don't know of anyone working on
> adding support for this; I'll integrate a patch if someone sends
> me one.

Thanks.. I may try to come up with one if time permits..

> > Also.. any word on when "LineNumber" attributes will be supported?
> 
> As far as I know, the LineNumber are supported in the current version
> with the following switch (see
> http://www.sable.mcgill.ca/soot/tutorial/usage/):
> 
> -A LineNumber, --annotation LineNumber
> Preserves the line number tables of class files through transformations.

Thanks, that works great.

Also, what about the "SourceFile" attribute? That one doesn't seem
to get picked up either.

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com