Two MethodVisitor with the same instances of Labels

<[email protected]> Wed, 19 Mar 2014 16:48:05 +0100 (CET)
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi !

I need to visit method twice, 
during first time I gather information about labels (I add them to map with
"state description")
durign second time, when I encounter label I want to perform some actions
depending  on "state" collected in previous visiting. Unfourtnatley it seem
that "Label" object I get are different beetwen these two passes.


I also try to use Tree Api, when in visitEnd Method I do


    @Override
    public void visitEnd()
    {
	this.accept(_firstVisitor);
	_secodnVisitor.setData(_firstVisitor.getData());
	this.accept(_secondVisitor);
	super.visitEnd();
    }

but this also generates different Label objects.


Is there any way to do it or I should try to Tree API editing of methods ??


Thanks in advance,

Grzesiek
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