aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169/pr309743/B.java
blob: fbc8b60191dd1edca8fe830af094eea41e2ef08d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.lang.reflect.*;
import java.lang.annotation.*;

public class B {
  public static void main(String []argv) {
    Field[] fs = B.class.getDeclaredFields();
    for (Field f: fs) {
    	printM(f);
    }
  }
  
  private static void printM(Field m) {
	  System.out.println(m.getName());
	  Annotation[] as = m.getAnnotations();
	  for (Annotation a: as) {
		  System.out.println(a);
	  }
  }
}

aspect X {
  public int B.boo;
}