AnnotatedMethodSelectorTest.java revision 3221:05ae1063b5c8
11573Srgrimes/* 21573Srgrimes * @test /nodynamiccopyright/ 31573Srgrimes * @bug 8145987 41573Srgrimes * @summary Assertion failure when compiling stream with type annotation 5235785Stheraven * @compile/fail/ref=AnnotatedMethodSelectorTest.out -XDrawDiagnostics AnnotatedMethodSelectorTest.java 6235785Stheraven */ 7235785Stheraven 8235785Stheraven 9235785Stheravenclass AnnotatedMethodSelectorTest { 101573Srgrimes @interface A {} 111573Srgrimes static public void main(String... args) { 121573Srgrimes java.util.@A() Arrays.stream(args); 131573Srgrimes } 141573Srgrimes} 151573Srgrimes