[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Parameter construction pointcut?
- From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 20:06:08 +0200
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=L6gfgh9dC+kI1Xc9+dr5zO2DPG5p/d/azZN9HiPLJIsoy572w6Mm6b15qlkXlx0PKpEtem1puzO0V+2wsS9dK1ftfKdGxbjujcD+1t4eaFNeMPtyG/pRJIEbgLaRET/obluq1meOOgz0qQt5HzXkIsL1WWD9+Cyoj/ln3Eg+Nr0=
On 10/08/07, Seva Popov <seva_popov@xxxxxxxxxxx> wrote:
This has come up before...
> Please, confirm my assumptions or suggest me any solutions besides
> fixing the code itself.
Your assumption is correct.
> P.S. I understand that AspectJ operates on the bytecode but not on the
> source code. But is it theoretically possible to augment the AspectJ
> with a parameter construction pointcut? Just curious.
That is impossible because it is undecidable in general. Where does
parameter construction start in general? Not even a human being could
answer that question.
W.r.t. your problem: I doubt that parameter construction is a
bottleneck in your code if all the construction is as easy as in the
case you showed. Maybe a profiler would give you more insight.
Sable Research Group
McGill University, Montréal, Canada