Re: Re: How to copy an InsnList?

"Markus Heiden" <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <068F73C3EE14485DA03415D6EA880583@Laptop>
Hello Eric,

> a possibility is to use InsnList.accept() or MethodNode.accept() with a
> MethodNode as parameter (with an overriden getLabelNode method to
> duplicate labels / label nodes)

I already tried that before, but without success. The Analyzer always fails 
with different exceptions, when I used it to analyze the copied method.

What have I to do, to duplicate labels and label nodes? Labels are hard to 
duplicate, because they have a lot of fields which are package private or 
private. Just replacing the Labels with "new Label()" seems not to do the 
job.

Markus
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.