summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/Bridging3.aj
blob: 0b57f29de127a806aacaf1e58614fd23d5466231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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> {
	abstract A id(A x);
}

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

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