-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 6u21, 7
-
Component/s: tools
-
b121
-
unknown, x86
-
generic, windows_xp, windows_7
-
Verified
The following program crashes javac:
class X {
public static <T> T getValue() {
return null;
}
public void testGenerics(Comparable<String> s) {
int i = getValue();
}
}
class X {
public static <T> T getValue() {
return null;
}
public void testGenerics(Comparable<String> s) {
int i = getValue();
}
}
- duplicates
-
JDK-7006848 NullPointerException in javac
-
- Closed
-
-
JDK-6973465 Type inference fails for primitive types
-
- Closed
-
- relates to
-
JDK-6785114 Return type inference (15.12.2.8) doesn't work with autoboxing
-
- Closed
-