Ron,

When you say "can't use load-time weaving to support perthis(Object).", I 
understand it to mean :
perthis for a pointcut which evaluates _this_ specifically to java.lang.Object
, and not:
perthis for a pointcut which evaluates _this_ to any Java object.

I think in the referenced Implementation Notes, "perthis(Object)" was used in 
the second sense above - that is, Object being any Java object.

Is my understanding correct?

Thanks,
Balaji

----- Original Message ----
From: Ron Bodkin <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, September 26, 2006 1:47:34 PM
Subject: 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of G Balaji
Sent: Tuesday, September 26, 2006 7:10 AM
To: [email protected]
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
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to