summaryrefslogtreecommitdiffstats
path: root/tests/features152/synchronization/transformed/Nine.java
blob: 8bd5fdf64798d755cba6f457521b7e2bcecab791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

// matching lock on transformed static method (J5)

public aspect Nine {
  public static void main(String[] args) {
    C.b();
  }

  before(): !within(Nine) && lock() { 
    System.err.println("Locking occurring at "+thisJoinPoint);
    System.err.println(thisJoinPoint.getSourceLocation().getFileName());
  }
}
  
class C {
  public static synchronized void b() {
    System.err.println("hello");
  }
}