Re: [aspectj-users] JoinPoint.getArgs() in multiple aspects on same joinpoint

2013-04-15 Thread Jay Roberts
Binding all the args and/or allowing some sort of read only of the closure state - actually, these are both useful and the read only of the closure state really closes the loop so that a downstream aspect can see exactly what will be executed upon. That info and the original getArgs both are ne

Re: [aspectj-users] JoinPoint.getArgs() in multiple aspects on same joinpoint

2013-04-15 Thread Brett Randall
I also don't know how you can bind the complete set of arguments for any/all method signatures. It might be a decent enhancement-request - others on the list may know whether access this has been previously proposed. For completeness, I believe that the fix for https://bugs.eclipse.org/bugs/show_

Re: [aspectj-users] JoinPoint.getArgs() in multiple aspects on same joinpoint

2013-04-14 Thread Jay Roberts
Hi Brett, Thanks for the links and the response. I had come across that discussion, but it still didn't meet my needs. I understand the logic of getArgs returning the original passed args, those semantics makes sense. But what I can't do is have something like args(..) in the pointcut and bi

Re: [aspectj-users] JoinPoint.getArgs() in multiple aspects on same joinpoint

2013-04-14 Thread Brett Randall
Jay, This was asked not so long ago on the list - it should be added to a FAQ if it is not already there, and perhaps justifies a JavaDoc clarficiation. See also: http://aspectj.2085585.n4.nabble.com/Modifying-parameters-in-more-than-one-aspect-providing-around-advice-td4650584.html http://stack

[aspectj-users] JoinPoint.getArgs() in multiple aspects on same joinpoint

2013-04-13 Thread Jay Roberts
Hi, I have a situation where I have several possibly cascading Around advices as simplified below. @Aspect @Precedence(FirstAspect, *) class FirstAspect{ @Around("execution(@SomeAnnotation * *.foo(..))") public Object doAdvice(ProceedingJoinpoint jp) throws Throwable{