|
Duplicate :
|
|
|
Relates :
|
Javac crashes with an assertion error in Types.contained by when compiling the following source:
import java.util.*;
class Test {
<T> void m(T t, List<? super List<T>> list) {}
void test(List<? super List<?>> list) {
m("", list);
}
}
In order to reproduce this problem the following command should be executed:
java -Xbootclasspath/p:/dist/lib/javac.jar -esa -jar dist/lib/javac.jar Test.java
or, using a JDK 7 compiler:
javac -J-esa Test.java
|