Parent class loaded too early
Peter Veentjer <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi guys i'm struggling with the following issue. I'm instrumenting classes and for some situations it is need to add additional classes using defineclass with a hack to expose this otherwise protected method. If i have class fruit i need to create à class fruittranlocal. This fruittranlocal is added with the defineclass method, no problems so far if i have à class apple that extends fruit i need to create appletran local that extends fruittranlocal If i load class fruit first, there is no problem (the fruittranlocal is added) But if i load apple first, the appletranlocal needs to be created but when i call defineclass with the bytecode for appletranlocal i get à class not foundation exception complaining that the fruittranlocal class isnt created yet. I understand that the verifier loads the fruittranlocal when the defineclass is called with the appletranlocal, so i understand why i get this error But what is the way to solve this problem? I tried forcing to load the parent of the Apple class when the javaagent gets his chance, but this doesnt solve the problem.
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