ASM4 / Java 7

Jeremy Manson <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <CAHF5=kRVNstoaKKyZKyNBBrQK-NV+xZd_CrHf0S+CRF_DrSSDQ@mail.gmail.com>
Hi all,

I seem to be having a problem with ASM 3.3 and Java 7...

Basically, the problem is that:

1) I have to generate StackMaps when transforming bytecode with Java
7, or I get a VerifyError,
2) I can't generate StackMaps using ClassWriter, because doing so
requires superclasses to be loaded - if I load a subclass B as a
result of loading a superclass A, then A isn't available when B is
transformed.

You guys have a workaround for this, which is basically "copy the code
in http://websvn.ow2.org/filedetails.php?repname=asm&path=%2Ftrunk%2Fasm%2Ftest%2Fconform%2Forg%2Fow2%2Fasm%2FClassWriterComputeFramesTest.java".
 But doesn't it seem as if this would be a common enough problem for
the code to be extracted from this test to somewhere everyone can use
it, if not made the default behavior for ClassWriter?  Do I have the
wrong end of the stick here?

If it is just a question of someone extracting it, I've done so, and
if you want me to send it along, I can.  If I'm completely
misunderstanding the problem, I'd be interested to hear about that,
too.

(Why do I care?  Mostly, I don't want to duplicate ASM's code in my
little OSS ASM project.)

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