[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] set() pointuct and after() returning(Object o)
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Thu, 3 Sep 2009 09:28:26 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wj+lcyI7T42QMZJ5J5twj8aq64GehQAkCBVWOydGI9o=; b=pCKhKjGrS6s6uQMMhGfaKDoO3czV7VY/ZQhrf+L7IrEl3wdifjTg22oTS1H+f+d2Is FfsRnWgh01lepAqbPeQeMpP0aqEWrdvjXyA3A4Yce6nI4ajNXJOI7A7UOUn2XZbllc0C 8iku6P/RFHWSkY6YoQWiEVpk2pHgkb1wImYFE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CqqQ1N2RQDRB0Oa2HlCq/hHVL23xkwgRN5eYtJu0O2wF1nn1srMFT2iFTFpSWflWg0 s9UmrBlJghXf9eJhjMJUpURFEEkPkAIb6WNa2ysr12BjfTCVXUu4C1Jcvzlkw9wkva1t x6Gjg5eM9qdCBY1FsVwafFfsb0w8QjdZKrQ+0=
Does seem a little inconsistent. Raise a bugzilla to track clarifying
why it is the right behaviour or fixing it.
Andy
2009/8/27 Simone Gianni <simoneg@xxxxxxxxxx>:
> Hi all,
> 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 it.
>
> 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
>
> --
> Simone Gianni CEO Semeru s.r.l. Apache Committer
> http://www.simonegianni.it/
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>