aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr149305/case1/AbstractOzonator.java
blob: ccd50046529290cd272c154df66f4056a5217190 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ajtest2;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public abstract class AbstractOzonator
{

  @Pointcut("")
  protected abstract void readMethodExecution();

  @Pointcut("readMethodExecution() && this(ozonated)")
  private void ozonatedReadExecution(Object ozonated){};

  @Around("ozonatedReadExecution(ozonated)")
  public Object aroundGetterCallNoRecurse( ProceedingJoinPoint thisJoinPoint,
      Object ozonated) throws Throwable
  {
    System.out.println("thisJoinPoint="+thisJoinPoint+", ozonated="+ozonated);
      return thisJoinPoint.proceed();
  }

}