aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/pr73507/Case3.java
blob: 588d97dc22fc4b1fe3dc90e7cd90f9bbc36b3668 (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
import java.lang.reflect.*;

interface I {
}


class C implements I {
}

public aspect Case3 {

  // one order
  public int C.i = 1;
  public int I.i = 5;

  // the other order ;)
  public int I.j = 5;
  public int C.j = 1;

  public static void main(String []argv) {
    System.out.println("Value of C.i is "+new C().i);
    System.out.println("Value of C.j is "+new C().j);
    System.out.println("Value of I.i is "+((I)new C()).i);
    System.out.println("Value of I.j is "+((I)new C()).j);
  }
  
}