Re: need to know maxsLocals before code transformation

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Le 17/10/2010 06:43, luc peuvrier at home a écrit :
> My code transformation of method's code needs to add locals variable 
> to exixting ones.
> To do that I need to know the original maximum number of local 
> variables for the method.
> The only way I found to obtain it is to do a byte code visit.
> To avoid this visit I think that ClassVisitor#visitMethod should have 
> maxStack and maxLocals arguments.
> What is your point of view ?
> Regards
> Luc

Take a look to commons.LocalVariableSorter,
you can add new locals without knowing maxLocals.

Rémi
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.