summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/bridgeMethods/BridgingITD2.aj
blob: 4e1d7b8c94ebc080c5223fc9bd10975ac331c46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// this bridge stuff is handled by the compiler
import java.lang.reflect.*;

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

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

public aspect BridgingITD2 {
	
	public String D.next() { return ""; }
	
	public static void main(String []argv) {
		Util.dumpMethods("D");
 C c = new D();
 String s = c.next();
	}
}