summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/Bridging1.aj
blob: 9aa9f4cf3074b86abf263b42741b2a5c7719b7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This bridge stuff is handled by the compiler - because
// D is a subtype of C even though method1 is being overridden,
// a bridge method 'C method1() { method1();}' is generated
// in the subclass D
import java.lang.reflect.*;

class C {
  C method1() {return null;}
}

class D extends C {
  D method1() {return null;}
}

public aspect Bridging1 {
  public static void main(String []argv) {
    Util.dumpMethods("D");
  }
}