Mon, 23 Sep 2013 10:42:38 +0200
6386236: Please rename com.sun.tools.javac.util.ListBuffer.lb()
Summary: Static factory method ListBuffer.lb removed. Replaced by constructor calls.
Reviewed-by: jfranck, jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @summary check that merged inherited descriptors preservers type-parameters
4 * @compile/fail/ref=LambdaConv25.out -XDrawDiagnostics LambdaConv25.java
5 */
6 class LambdaConv25 {
8 interface A {
9 <X> void m();
10 }
12 interface B {
13 <X> void m();
14 }
16 interface C extends A, B { }
18 void test() {
19 C c = ()->{}; //should fail
20 }
21 }