aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/BridgingITD3.aj
blob: 5beff1481f9eb321178ed18012b3a75383a50e27 (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
// Similar to previous type var test but now the String parameter should
// be Object in the bridge method
import java.lang.reflect.*;

abstract class C<A> {
	public abstract A id(A x);
}

class D extends C<String> {
	//public String id(String s) {return s;}
}

public aspect BridgingITD3 {
	public String D.id(String s) {return s;}
	public static void main(String []argv) {
		Util.dumpMethods("D");
	}
}