-
Bug
-
Resolution: Fixed
-
P2
-
6, 7
-
b40
-
unknown, x86
-
generic, linux
-
Not verified
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
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
- duplicates
-
JDK-6865518 Compiler assertion failure during type checking
- Closed
- relates to
-
JDK-6651719 Compiler crashes possibly during forward reference of TypeParameter
- Closed