aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr265418/A.java
blob: b68ca4da766c00309f01cedee52faf06fa924e19 (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
27
28
29
public aspect A {

  public static void a(Object... os) {}
  public static void b(String... ss) {}
  public static void c(Integer... is) {}

  public static void d(Object[] os) {}
  public static void e(String[] ss) {}
  public static void f(Integer[] is) {}


  before(Object[] args): call(* *(Object+...)) && args(args) {
    System.out.println("varargs "+thisJoinPoint);
  }

  before(Object[] args): call(* *(Object+[])) && args(args) {
    System.out.println("arrays  "+thisJoinPoint);
  }

  public static void main(String []argv) {
    a();
    b();
    c();
    d(null);
    e(null);
    f(null);
  }

}