summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr118698.aj
blob: 198f8da2c3cafa686730ee0b36a2389b2d708eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public aspect pr118698 {
    private static interface Marker {}   

    private class Foo implements Marker {
		public Foo() {
            bar = null; // allowed
            listener = null; // should also be allowed
            this.listener = null; // so should this
            ((Marker)this).listener = null; // and this
        }
    }

    public static void main(String []argv) {
      pr118698.aspectOf().x();
    }
    
    public void x() {
    	new Foo();
    }

    private Object Marker.listener;
    private Object bar;
}