}
Object around(): //initialization(C.new(String)) {
- if(test()) && !within(A) && !call(* A.*(..)) {
+ if(test()) && !within(A) && !call(* A.*(..)) && !preinitialization(new(..)) {
A.log("enter " + thisJoinPoint);
Object ret = proceed();
A.log("exit " + thisJoinPoint);
//pointcut goCut(): cflow(!within(FilterAspect));
//pointcut goCut(): cflow(within(FilterAspect));
//pointcut goCut(): cflow(within(testclass1));
- pointcut goCut(): !within(Filteraspect) && cflow(within(testclass1));
+ pointcut goCut(): !within(Filteraspect) && cflow(within(testclass1)) && !preinitialization(new(..));
// works ok
//pointcut goCut(): within(Filteraspect);
Object around(): goCut() { i++; return proceed(); }