aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs185/451966/Code.java
blob: ff4749340b4997d81f1b5aa9b1f7edb9e1496cb2 (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
public class Code {
  public static void main(String []argv) {
    new Bar().foo();
  }
}
interface Common { }

interface Allergies extends Common { 
  default public void foo() {
  }
}

class Bar implements Allergies { }

aspect Y {
  private boolean Common.instancesInvariant() {
    return false;
  }
}

privileged aspect AspectJMLRac_allergies_Allergies {
  before(final Allergies object$rac): execution(* Allergies+.*(..)) && this(object$rac) {
    boolean b = object$rac.instancesInvariant();
  }
}