| Re: [aspectj-users] One target for intertype declarations |
Hi Eric,
No, I guess that's a misinterpretation: The "bind" method creates a new aspect instance for every argument object for which it does not find yet a cached version:
> public class test implements taspect$ajcMightHaveAspect
> {
> int testField;
> private transient taspect ajc$taspect$perObjectField;and
> public class test2 extends test implements taspect$ajcMightHaveAspect
> {
> int test2Field;
> private transient taspect ajc$taspect$perObjectField;Cheers,
Dave
public static void ajc$perObjectBind(java.lang.Object r0) { if (r0 instanceof taspect$ajcMightHaveAspect != false) { if (((taspect$ajcMightHaveAspect) r0).ajc$taspect$perObjectGet() == null) { /*HERE*/ ((taspect$ajcMightHaveAspect) r0).ajc$taspect$perObjectSet(new taspect()); } }
return; }
Eric
- -- Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University
-----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3
iQA/AwUBQaHvzMwiFCm7RlWCEQLJgwCeLWqsPBUkNPOC1vwXaNyB4XsgogQAoNHs yF/rPEJy68gKQjyD9A9KAGWl =HozS -----END PGP SIGNATURE-----
_______________________________________________ aspectj-users mailing list aspectj-users@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/aspectj-users
Attachment:
pertargetTest.tgz
Description: Binary data