[aspectwerkz-dev] Wrapped and original methods

"Michael Nascimento Santos" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <BAY19-DAV8G101s7hpJ0001b6d1__36287.4688268223$1087311277@hotmail.com>
Hi folks,

Sorry to bother you again ;-) We have another issue with AW right now.

For our framework, we need to get a reference to the wrapped method, i.e.,
the one that, after offline bytecode weaving, has the "original name", but
just calls AW. Currently, there is (apparently) just one way to do that in
an aspect: by using MethodRttiImpl (through a somewhat obscure call to
getMethodTuple().getWrapperMethod()). We think there should be a way to
reach this method using interfaces.

A different but related problem we are facing is that, given the original
method, we need to get a reference to the wrapped method _outside an aspect
or a mixin_. This is needed since after offline weaving, method attributes
are moved to the "original" method, i.e., the one named like __AW... and
that contains the original bytecode. Today, there is a way to access a
MethodTuple if I have a reference to the wrapped method and use it to
calculate its hash. We really need to do it the other way round. Besides
that, it'd be nice if AW calculated the hash when a Method instance is
given.

What do you think about it? Is that possible/desirable?

Regards,
Michael Nascimento Santos
JSR-207 Expert Group Member
http://www.javablogs.com.br/blogs/page/soujavamisterm
http://today.java.net/pub/au/80
Sun Certified Programmer for the Java 2 Platform 1.2 & 1.4
Sun Certified Web Component Developer for J2EE
Sun Certified Mobile Application Developer
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.