Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Requesting more info on Implementation Notes aboutperthis (compile-time vs. load-time weaving)

To add to Wes' answer, it's important to note that AspectJ load-time weaving
doesn't support weaving into the bootstrap loader, even when use a Java
agent like Java 5's java agent. Weaving into the bootstrap loader would
raise a number of issues), so you can't use load-time weaving to support
perthis(Object). There has been some discussion of the issues involved in
the Eclipse bugzilla bug #149261

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of G Balaji
Sent: Tuesday, September 26, 2006 7:10 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Requesting more info on Implementation Notes
aboutperthis (compile-time vs. load-time weaving)

Dear AspectJ Experts,
 
>From the AspectJ's programming guide's implementation notes [found at
http://www.eclipse.org/aspectj/doc/released/progguide/implementation.html ]
:
 
"Aspects that are defined perthis or pertarget also have restrictions based
on control of the code. In particular, at a join point where the bytecode
for the currently executing object is not available, an aspect defined
perthis of that join point will not be associated. So aspects defined
perthis(Object) will not create aspect instances for every object unless
Object is part of the compile. Similar restrictions apply to pertarget
aspects. "
 
In the context of the above statement, if we examine the following
statement-fragment:
 
"..aspects defined perthis(Object) will not create aspect instances for
every object unless Object is part of the compile..". 
 
how is this statement affected when load-time weaving is used instead of
(or, in addition to) compile-time weaving?
 
Thanks,
G Balaji.
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top