Re: [abc-users] PerTarget implementation

From: Eric Bodden <>
Date: Sun, 20 Sep 2009 13:16:16 +0200

Hi Antoine.

I did not implement the abc compiler but I think that the designers of
abc might have decided to implement pertarget this way because it
follows the semantics of what the eclipse-based AspectJ compiler (ajc)
does. Straight out of my head I cannot think of any problem with
allowing pertarget also for unweavable classes, i.e. I think that it
should be possible to implement such a feature using another
implementation strategy.


2009/9/20 Antoine Marot <>:
> Hello,
> I was having fun with abc and looking at the generated code with Dava when I
> noticed an odd code generation policy. Indeed, pertarget aspect instances
> are retrieved by calling a method on targets themselves. This implies that a
> method has to be introduced in the class of the target.
> Therefore, it is impossible to have aspect instances  for unweavable
> classes. I guess the implementation is made this way to speed up the
> instance retrieval but isn't that an unnecessary limitation ?
> Is there another reason to not allow aspect instances for unweavable classes
> ?
> Kind regards,
> Antoine

Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
Received on Sun Sep 20 2009 - 12:16:40 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 20 2009 - 13:10:10 BST