javac crash

Tristan Yan tristan.yan at
Sat Jun 29 09:04:20 PDT 2013

Is there anyone in compiler team who can look at this, this should report compilation error rather than compiler crash.

import java.util.*;



public class Crash<U> {

    public void crash(U current, Stream<U> stream) {

        List<U> list3 = new ArrayList<>();

        stream.forEach(i -> list3.add(current.clone()));





An exception has occurred in the compiler (1.8.0-internal). Please file a bug at the Java Developer Connection (

webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.

Thank you.

java.lang.AssertionError: isSubClass U



Tristan Yan(Haibo Yan)

Office : 8610-61066212

Fax  : 8610-61065441

Cell  : 86-18610696822


2F, Building No. 24, Zhongguancun Software Park

Haidian District HYPERLINK ""Beijing , 100193



More information about the lambda-dev mailing list