[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Advice on Advice
|
Would you mind providing some minimal sample code to reproduce the situation? It is always a good idea to provide the code you ask others to help you fix. ;-)
Alexander Kriegisch
Am 12.03.2013 um 00:23 schrieb Jaco le Roux <jabalsad@xxxxxxxxx>:
> 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@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users