aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs171/pr73507/Case3.java
blob: 3cfc979b5f9e4d96c6cecdc234bbfcae06cbc912 (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
30
31
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 int I.k = 1;
  public int C.k = 5;

  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 C.k is "+new C().k);
    System.out.println("Value of I.i is "+((I)new C()).i);
    System.out.println("Value of I.j is "+((I)new C()).j);
  }
  
}