For the task:
I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(ZZ)V

I can't make any sense out of it.

Looks like for some reason you have the wrong version of ASM in your classpath?!

For me, it seems as it's an issue of the JVM: I am using Java 1.5 and
the previous example is using Java Generics.
Could that be cause of the problem?

Could be the case ...but unlikely - I am also using 1.5

I could not find any comment in the official documentation (neither
bcel nor asm) but from what I read from the mailing lists,
it seems as if both frameworks don't work with Java 1.5 byte code.

1.5 byte code is not much different from 1.4 because generics are
not implemented on the byte code level. So in theory this should not
harm the instrumentation. But there are still a few things differenent.
Proper support for 1.5 has only been added to BCEL trunk just recently.

Pretty sure ASM does fully support 1.5 and (at least trunk) even 1.6.

> .could please file all these information into a jira issue?
Of course. Even if this is a Java version issue?

It would be great if you could compile your testcase without the generics
and target to 1.4 and then report back. But yes, please open an issue and
add all information to it.

cheers
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to