-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 5.0
-
Component/s: tools
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
-