summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/ProgramA.java
blob: 69a39890b07c07ebf9312316b0355ee19b8e23f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Bridge methods.

interface I<N extends Number> {
  public N methodOne();
  public N methodTwo();
}

class Impl<T extends Float> implements I<T> {
  public T m() { return null;}
}

public class ProgramA {
  public static void main(String[]argv) {
    Impl i = new Impl();
    i.methodOne();
    i.methodTwo();
  }
}

aspect X {
  public N Impl<N>.methodTwo() { return null;}
}