Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: accessing specific instances with AspectJ and overwriting query

It looks to me the effect you're after can presently be obtained through
around() advice without a call to proceed().
A new keyword could make such effect more intentional, but it would also
create another case in which an effect can be achieved in more than one way.
This is already the case with before() and after() advice, which can be
emulated with around().
--
Miguel J. T. Pessoa Monteiro
Ph.D. student Minho University, Portugal
eMail: mpm@xxxxxxxxxxx
URL: http://gec.di.uminho.pt/mpm/



--------- Original Message --------
2.    Also in some cases I've found that I require aspects to "overwrite"
existing methods in classes rather than merely wrap them which can cause
code                 bloat.  I've often thought that the keyword "overwrite"
might be useful with introductions where we can overwrite methods that are
already defined.

class MyClass {
     public void method() {..}
    }


aspect A {
    overwrite public void MyClass.method() {.. new implementation }
    }


I'd be interested in the lists opinions (good or bad!) regarding these
issues.

Cheers
Neil

________________________________________________
Message sent using UebiMiau 2.7.8




Back to the top