IDEA-129734 IOOBE on decompiling certain method references

This commit is contained in:
Egor.Ushakov
2015-01-15 12:55:05 +03:00
parent 768f82b798
commit 62b876af25
4 changed files with 111 additions and 91 deletions

View File

@@ -15,7 +15,9 @@
*/
package pkg;
import java.lang.annotation.Annotation;
import java.util.*;
import java.util.Arrays;
import java.util.function.IntBinaryOperator;
import java.util.function.Supplier;
@@ -63,6 +65,10 @@ public class TestClassLambda {
list.removeIf(s -> (bottom >= s.length() && s.length() <= top));
}
public static void testLambda7(Annotation[] annotations) {
Arrays.stream(annotations).map(Annotation::annotationType);
}
public static OptionalInt reduce(IntBinaryOperator op) {
return null;
}