Hi,

I have an Advice class that declares a method that happens to be a
pointcut for other advice. My advice class also has a reference to a
static log object. If I print something to the log as part of some
@Around advice, the point-cuts are all setup correctly. If I comment
this line out, then the method that is a point-cut of the other advice
is no longer weaved during compile time (the log message "weaveinfo
Join point 'method-call(...)' in type '..' advised by around advice"
no longer appears).

Why is that my advice doesn't trigger when I don't print to this log
file? Does it have to do with the fact that the log object is static
and perhaps forces the Aspect class to be instantiated at a different
point?

Any advice (excuse the pun) appreciated!
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to