javac crash

Tristan Yan tristan.yan at oracle.com
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.*;

import java.util.stream.*;

 

public class Crash<U> {

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

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

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

    }

}

 

javac Crash.java

An exception has occurred in the compiler (1.8.0-internal). Please file a bug at the Java Developer Connection (http://java.sun.com/

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 "http://people.us.oracle.com/pls/oracle/f?p=8000:6:396067987304343:::6:P6_CITY:Beijing"Beijing , 100193

oracle

 


More information about the lambda-dev mailing list