[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ajdt-dev] cflow Below problem
|
Marco -
ajdt-dev is for discussing the development of AJDT.
The email list for discussing AspectJ usage is aspectj-users.
You might get more responses there, but I think the docs discuss what you need.
See the FAQ item for how to post a message:
http://www.eclipse.org/aspectj/doc/released/faq.html#q:writingbugsandemails
and for cflow/cflowbelow:
http://www.eclipse.org/aspectj/doc/released/faq.html#q:comparecflowandcflowbelow
and see the examples of cflow:
AspectJ-1.5/doc/examples/tjp/GetInfo.java
AspectJ-1.5/doc/examples/tracing/version3/Trace.java
hth - Wes
> ------------Original Message------------
> From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
> To: "AspectJ Development Tools developer discussions" <ajdt-dev@xxxxxxxxxxx>
> Date: Tue, May-23-2006 8:54 AM
> Subject: RE: [ajdt-dev] cflow Below problem
>
> Hi.
>
> > Hello eric,
> > sorry it was a typo....
> > well, everything works but not as expected.....
> >
> > void around() : cflow(deleteObject()) && checkStatus() {
> > System.err.println("Pointcut intercepted!!!!..");
> > return;
> > }
> >
> >
> > i placed a return because i wanted to skip the call to
> > checkStatus if the call was being made in the cflow of
> > deleteObject, but with that return, the whole deleteObject
> > method won't get executed........while in my case i want only
> > the call to checkStatus not to be executed......
>
> Ok, first of all: The "return" is totally superflous. The around advice
> only executes the original joinpoint if you call "proceed()". Secondly,
> I don't believe you :-) Something must be wrong with your pointcuts
> then. I would help if you pastet your real actual code here. What for
> example is "checkStatus()"? You never defined that pointcut...
>
> Eric
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>