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

public class CaseM {
  public static void main(String[]argv) { 
  }
}

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

}

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