-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b140
-
x86
-
windows_7
-
Verified
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
interface A
{
abstract <T> void foo();
}
interface B
{
abstract void foo();
}
class C<T extends A & B>
{
void bar(T x)
{
x.foo();
}
}
javac throws the following exception:
java.lang.ClassCastException: com.sun.tools.javac.code.Type$MethodType cannot be cast to com.sun.tools.javac.code.Type$ForAll
REPRODUCIBILITY :
This bug can be reproduced always.
Bugs 4851398 and 4881362 reported crash using similar conjunction types but those could not be reproduce.
This crashes same way with jdk5,6,7.
A DESCRIPTION OF THE PROBLEM :
interface A
{
abstract <T> void foo();
}
interface B
{
abstract void foo();
}
class C<T extends A & B>
{
void bar(T x)
{
x.foo();
}
}
javac throws the following exception:
java.lang.ClassCastException: com.sun.tools.javac.code.Type$MethodType cannot be cast to com.sun.tools.javac.code.Type$ForAll
REPRODUCIBILITY :
This bug can be reproduced always.
Bugs 4851398 and 4881362 reported crash using similar conjunction types but those could not be reproduce.
This crashes same way with jdk5,6,7.
- relates to
-
JDK-4881362 generics: crash with conjunction types
-
- Closed
-
-
JDK-4851398 generics: compiler crash when typevar bound is inner class
-
- Closed
-
-
JDK-7034913 15.12.2.5: Resolution of call to abstract methods is nondeterministic
-
- Closed
-
-
JDK-7062745 Regression: difference in overload resolution when two methods are maximally specific
-
- Resolved
-