blob: 1fb10c56f59de66d84c06af8f64b94e9f544a57c [file]
import java.util.function.Function;
import java.util.stream.Stream;
public class ExceptionInProducerCall {
public static void main(String[] args) {
try {
check();
} catch (Throwable ignored) {
}
}
private static void check() {
//Breakpoint!
Stream.generate(() -> {
throw new RuntimeException();
}).map(Function.identity()).toArray();
}
}