aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/transformed/Two.java
blob: 129222cd3a3957bf0309350f3c9dc08011ef21a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public aspect Two {
  public static void main(String[] args) {
     new C().ma();
  }
  before(): execution(* ma(..)) { System.err.println("execution advice running");}
}

class C {
  
  public synchronized void ma() {
    System.err.println("hello");
  }
}

aspect TwoX { pointcut p(): lock(); }