aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/transformed/Six.java
blob: 71c800a4b4c81d175e3ff0c1df3dc3f3d3619f2c (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
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public aspect Six {
  public static void main(String[] args) {
    C.bbb();
    C.c();
  }

  before(): !within(Six) && call(* println(..)) { System.err.println("test");}
}
  
class C {
  public static synchronized void bbb() {
    System.err.println("hello");
  }

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

aspect SixX { pointcut p(): unlock(); }