Details
-
Bug
-
Resolution: Fixed
-
P2
-
8, 8-repo-lambda
-
b100
-
Verified
Description
This code crashes javac
import java.util.*;
interface Predicate<T> {
void m(T t);
}
interface Stream<T> {
void forEach(Predicate<T> pt);
}
class Crash<U> {
public void crash(U current, Stream<U> stream) {
List<U> list3 = new ArrayList<>();
stream.forEach(i -> list3.add(current.clone()));
}
}
import java.util.*;
interface Predicate<T> {
void m(T t);
}
interface Stream<T> {
void forEach(Predicate<T> pt);
}
class Crash<U> {
public void crash(U current, Stream<U> stream) {
List<U> list3 = new ArrayList<>();
stream.forEach(i -> list3.add(current.clone()));
}
}