summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/Bridging2.aj
blob: 7a2b6d206f16d5ee3d69d479f88f937b384d9bd2 (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
// We should get two methods in D, one is next() with return type Object
// and one is next() with return type String
import java.lang.reflect.*;

abstract class C<A> {
	abstract A next();
}

class D extends C<String> {
	String next() {return "";}
}

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