[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[aspectj-users] set() pointuct and after() returning(Object o)
- From: Simone Gianni <simoneg@xxxxxxxxxx>
- Date: Thu, 27 Aug 2009 15:48:18 +0200
- Delivered-to: firstname.lastname@example.org
- User-agent: Thunderbird 22.214.171.124 (X11/20090102)
I don't know if this is a bug, or if it's a known or wanted behavior,
but using after() returning(Object o) on a set() pointcut does not weave
Since documentation states that using Object in the returning clause
will match also methods returning void, which it does, I would expect it
to weave correctly also set() pointcuts, which obviously return "void".
A normal after() advice (without the returning clause) will match and
weave correctly, but makes it necessary to write the advice twice if I'm
willing to trace all execution, get() and set() to trace an execution.
This is happening under 1.6.5, both LTW and CTW, both from inside AJDT
and from command line.
Simone Gianni CEO Semeru s.r.l. Apache Committer