aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features164/declareMixin/CaseJ.java
blob: 8b33faf6c60249e043d82e0943bfbc3339daf7f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// TESTING: invalid return type for factory method
import org.aspectj.lang.annotation.*;

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

aspect X {
  @DeclareMixin("A")
  public static void createImplementation1() {}

  @DeclareMixin("A")
  public static int createImplementation2(Object o) {return 2;}
}

interface I {}