Re: Re: Invocation target runtime type for virtually invoked methods
Marcin Rzeźnicki <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
2010/5/28 Arvid Svensson <[email protected]>: > Consider using AspectJ instead. Make a pointcut capturing all calls to > A.meth(..) and get hold of the runtime target object/type through an around > advice' jointPoint. Solves your problem in less lines than this > conversation. > Of course you could achieve this using ASM as well, in this case - instrument a (non-static) method and add getClass() call targeting 0th local. This may be longer in code size than proposed AspectJ solution, however I'm actively trying to disprove that by enlarging this topic's size :-)
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