aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs182/440983/Code.java
blob: 96411a3784d95a827f75fa9797f2876e3f29dad2 (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
import java.util.*;
import java.lang.annotation.*;

@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.CLASS)
@interface Anno {}

public class Code {
  public static void xxx(String []argv) {
    List<@Anno String> ls = new ArrayList<String>();
    System.out.println(ls);
  }

  public static void yyy(String []argv) {
  }

  public static void main(String []argv) {
    Code c = new Code();
    c.xxx(argv);
    System.out.println("works");
  }
}

//aspect X {
//  before(): execution(* main(..)) {}
//}