summaryrefslogtreecommitdiffstats
path: root/tests/features164/declareMixin/CaseL.java
blob: 6c505b944554fd3e4e4b0633586bc4adcec45066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// TESTING: mixin of a class - should be an error
import org.aspectj.lang.annotation.*;

public class CaseL {
  public static void main(String[]argv) { 
    ((C)new CaseL()).foo();
  }
}

aspect X {
  @DeclareMixin("CaseL")
  public static C createImplementation1() {return new C();}

}

class C {
  void foo() {
    System.out.println("foo() running");
  }
}