-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0
Javac accepts this program:
class Test2 <T extends I1 & I2> { }
interface I1 {
int getFoo();
}
interface I2 {
float getFoo();
}
But correctly rejects this version:
interface I1 {
int getFoo();
}
interface I2 {
float getFoo();
}
class Test2 <T extends I1 & I2> { }
class Test2 <T extends I1 & I2> { }
interface I1 {
int getFoo();
}
interface I2 {
float getFoo();
}
But correctly rejects this version:
interface I1 {
int getFoo();
}
interface I2 {
float getFoo();
}
class Test2 <T extends I1 & I2> { }
- duplicates
-
JDK-5061359 No error for ambiguous member of intersection
- Closed