Hi all,
I've just checked in a debug flag "thisJoinPointOnlyIdentity". Running
with this will have the effect of making the "thisJoinPoint" variable be
of type Object, with a new one created at each join point. If your code
still type checks, then probably all you are doing with thisJoinPoint is
comparing it with other ones for identity, and obviously the construction
process will be rather a lot cheaper!
Of course, your code might really only be comparing them for identity, but
not type check because you have explicitly stored it into a variable of
the wrong type. You can either change your code to use variables of type
Object instead of type org.aspectj.lang.JoinPoint, or ask me to switch to
my alternative implementation, which involved a dummy implementation of
the org.aspectj.lang.JoinPoint interface.
[For the benefit of anyone who wasn't following the discussions about
this, the idea is to see whether it's worth making a proper analysis that
can do this kind of thing automatically and safely. The original plan was
to make a new special variable in EAJ, called thisJoinPointIdentity, but I
gave up on this when I realised how much boilerplate it would need in the
front-end.]
Cheers,
Ganesh
Received on Thu Mar 02 23:56:15 2006
This archive was generated by hypermail 2.1.8 : Tue Mar 06 2007 - 16:13:27 GMT