java.lang.ClassNotFoundException during CheckClassAdapter.verify
Nikita Salnikov-Tarnovski <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi. I am implementing some java agent, which must instrument classes when they are being loaded by JVM. In order to verify my instrumentation I use CheckClassAdapter.verify. But sometimes I get the java.lang.ClassNotFoundException: Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: MySpecialClass at org.objectweb.asm.tree.analysis.SimpleVerifier.getClass(Unknown Source) at org.objectweb.asm.tree.analysis.SimpleVerifier.isAssignableFrom(Unknown Source) at org.objectweb.asm.tree.analysis.SimpleVerifier.isSubTypeOf(Unknown Source) at org.objectweb.asm.tree.analysis.BasicVerifier.naryOperation(Unknown Source) at org.objectweb.asm.tree.analysis.Frame.execute(Unknown Source) I think that the problem arises when class being instrumented right now uses some other class, which is not loaded yet. And so ASM cannot verify it. Is this possible to verify bytecode correctness without all classes being loaded and available? Best wishes Nikita
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