Re: Re: Re: How to copy an InsnList?

Michael Orlov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

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

I use ASMContentHandler with SAXClassAdapter in order to duplicate
complete class nodes while avoiding problems with finalizing labels data
- perhaps this approach can work in your case. I will be happy to hear
about any canonical method for duplicating tree nodes, if there is such.

By the way, XStream is very useful for testing the correctness of a
duplication methodology.

Best regards,
Michael
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.