aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR83303.java
blob: a81efda826e55013f924b6b90ce81b4f04a5b4c9 (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
// Protected method in A
class A {
  protected void m1 (){System.err.println("A.m1()");}
}


// Simple subclass
public class PR83303 extends A {
  public static void main(String []argv) {
    System.err.println("Hi");
    new PR83303().m1();
  }
}


aspect C {
  declare parents: PR83303 implements I;
  public void PR83303.m1(){System.err.println("ITD version of m1");}
}


interface I {
  public void m1();
}