AnnotatedMethodSelectorTest3.java revision 3221:05ae1063b5c8
1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8145987 4 * @summary Assertion failure when compiling stream with type annotation 5 * @compile/fail/ref=AnnotatedMethodSelectorTest3.out -XDrawDiagnostics AnnotatedMethodSelectorTest3.java 6 */ 7 8 9class AnnotatedMethodSelectorTest3 { 10 @interface A {} 11 static <T> AnnotatedMethodSelectorTest3 id() { 12 return null; 13 } 14 static public void main(String... args) { 15 AnnotatedMethodSelectorTest3.<@A String> id().id().id().id().id(); 16 } 17} 18