[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Re: reflective calls

The question may then be: if someone implements an AspectJ weaver (as
the trend starts to surface thru ABC and JRockit) would there be a
need for an option to turn on/off this reflective call matching.
Note that as I said some aspect can be added to handle that as well in
weavers that don't have the capability to do this kind of matching.

The same question would be raised if f.e. one would ask for an AspectJ
TCK, or more generally with "what is the call pointcut exact behavior"
(no matter the language beehind - reflection is existing in .Net if I
remember).

Alex


On 6/17/05, Jonas Bonér <jboner@xxxxxxxxx> wrote:
> Hi Eric.
> 
> I agree that this is not problem related to AspectJ, but related to
> how weaving is done (weaving meaning both the analysis and the actual
> instrumentation).
> 
> As an example,  when we implemented the AOP support in the JRockit JVM
> (with AspectJ as the front-end) this problem solved itself, since the
> VM sees no difference between reflective call in a regular call.
> 
> /Jonas
> 
> On 6/17/05, Eric Bodden <eric@xxxxxxxxx> wrote:
> > Alexandre Vasseur wrote:
> > > I have been asked what is the "AspectJ answer" to "how to match
> > > reflective calls" such as with:
> >
> > Hi, Alex. The issue you are raising is actually not an AspectJ specific
> > problem. It's indeed a problem for any program which employs
> > interprodedural
> > analysis as well. Up till now I have seen no decent solution to this
> > problem, which does not surprise me because I think there actually cannot
> > be
> > one. The one possible method you mentioned (runtime matching) is actually
> > the only possible way IMHO since obviously *any possible String* could be
> > passed in to Method.invoke(...). What this String looks like cannot
> > generally be determined statically. Thus runtime evaluation/matching is
> > unavoidable for a general solution.
> >
> > Hope that helps,
> > Eric
> >
> > --
> > Eric Bodden
> > Chair I2 for Programming Languages and Program Analysis
> > RWTH Aachen University
> >
> >
> > _______________________________________________
> > aspectj-dev mailing list
> > aspectj-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-dev
> >
> 
> 
> --
> /Jonas
>