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