Re: ClassWriter#visit now final

Eric Bruneton <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Jochen Theodorou wrote:
> Hi all,
>
> I just noticed, that ClassWriter#visit is now final. We used a
> ClassReader to first read a class and then write it out again with a
> different super class. I strongly assume the old code, in which we
> simple extended the class and rewrote the visit method is wrong. But how
> is it done correctly then?

you should write a subclass of ClassVisitor. The old code is "wrong" in 
that it does not specify an API version and so backward binary 
compatibility can not be ensured.

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