As Alexander says, we probably need more to go on here. My attempts to create what you are describing are just working, I fleshed out the sample you included earlier and saw the weaving with/without any use of logger from the advice.
> I would expect to see a message similar to this: "weaveinfo Join point 'method-call(java.lang.Object mypackage.someMethod(...))' in Type 'mypackage.MyAspect' (MyAspect.java:30) advised by around advice from 'anotherpackage.AsynchronousAspect' (from AsynchronousAspect.java))"
So you are using a pointcut like 'call(@Asynchronous * *(..))' ? I find 'execution' pointcuts better usually (they weave less places) but whether you can use them may depend on what code you have under your control.
Few things you can try:
- try code style rather than annotation style aspects, the latter has more bugs than the former.
- try execution rather than call pointcuts
The log object being static won't make any difference, it certainly wouldn't affect the compiler producing a weave info message - those are printed at compile time in a static context.
There could well be a bug here but I won't be able to get to the bottom of it without a bit more to go on.
cheers,
Andy