[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Parameter construction pointcut?
|
- From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 20:06:08 +0200
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received: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=sEEqGcQK3ssprYL4bIe4amHhho2qvt4oyH8DLyf5keZ5NQMTVEkUuD7B2qZ/EpHEUu3JIDdECBjQUEq77l25ZMbn/TQu8KDRnPk7pgTrOZoAqYgnmOymulLGsgkS5j93pOdGWGTVvLC8xRq1nTo/6ZHfVagg6/Bn9JdT93dvbHc=
- 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.
Eric
--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada