AnnotatedMethodSelectorTest2.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=AnnotatedMethodSelectorTest2.out -XDrawDiagnostics AnnotatedMethodSelectorTest2.java 6 */ 7 8class AnnotatedMethodSelectorTest2<T> { 9 @interface A {} 10 class Inner {} 11 static public void main(String... args) { 12 new AnnotatedMethodSelectorTest2<@A String>() { 13 java.util.@A List l; 14 }.hashCode(); 15 } 16} 17