| RE: [aspectj-users] Incremental build failure: the parameter is not bound in [all branches of] pointcut |
|
Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=286341 Thanks. Date: Tue, 11 Aug 2009 14:12:50 -0700 Subject: Re: [aspectj-users] Incremental build failure: the parameter is not bound in [all branches of] pointcut From: andrew.clement@xxxxxxxxx To: aspectj-users@xxxxxxxxxxx Hi Jonathan, Definetly a bug, and I think you are right that it is the combination of target(b) and incremental. if you raise a bug I'll take a look: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ Workarounds for now - well you could try it in code style rather than annotation style, but I suspect that won't fix it in this case. You could avoid binding target and instead access it through the ProceedingJoinPoint via getTarget(). @Pointcut("if() && call(public * somepackage.Behavior.*(..)) && target(Behavior)") public static boolean adviseIfMonitoring() {
public Object monitorBehaviorPerformance(ProceedingJoinPoint pjp) throws Throwable { Behavior b = pjp.getTarget(); return pjp.proceed(); incremental comp may be more forgiving on that setup. Andy 2009/8/10 Jonathan Brown <jonathan_w_brown@xxxxxxxxxxx>
Windows Live™: Keep your life in sync. Check it out. |