[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] adviceexecution and/or astract pointcut definitions
|
Eric,
Is this more of a users-list question?
Also, can you try doing a full recompile after each change in question?
The advice gutter-annotations were a bit flaky in 1.1.x (haven't
checked 1.2 yet). It may be that the tool is telling you things that
are not true...
Cheers,
Nick
On Oct 14, 2004, at 2:15 PM, Eric Bodden wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Today I had some trouble with some pointcut definitions, which I
could not clarify using the online help:
Firstly I apparently mistake the definition of the adviceexecution()
pointcut:
If you have a look at the graphic "set_event_not_matched.gif", you
see that I set a field in one of the pieces of advice. In another
piece of advice I want to match on that set event and in order to do
so employ the adviceexecution() pointcut. Actually I thought that
this would work since the set event is taking place inside a piece of
advice.
In the graphic "set_event_matched.gif" I inverted to
!adviceexecution() and here you can see that now the pointcut does
match. That's confusing to me. Why is that?
Secondly I noticed that if I change a certain pointcut to abstract
(see "set_event_abstract_not_matc.gif") it also does not match any
more. This might be a compiler/AJDT limitation, however I am not
sure...
Some explanation would be great.
Cheers,
Eric
- --
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQW7seMwiFCm7RlWCEQILjgCgot0KLrYF+7BJN/kCOC3t4qQTMdgAni4i
pTjVyZXnqUfizI0IeNgaaVus
=cyHP
-----END PGP SIGNATURE-----
<set_event_not_matched.gif><set_event_matched.gif>
Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming
Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt
Articles on AspectJ:
* http://tinyurl.com/66vu and http://tinyurl.com/66vv