Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Requesting more info on Implementation Notes about perthis (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.


Back to the top