-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: 5.0
-
Component/s: tools
This program should compile.
// Tim Hanson <###@###.###>
class Test implements IClass{
Test(IClass c, Test t, IType... args) {}
Test(IClass c, IType... args) {}
public static void main(String args[]) {
IClass c = null;
Test t = null;
Test t2 = new Test(c, t);
}
}
interface IType{}
interface IClass extends IType{}
// Tim Hanson <###@###.###>
class Test implements IClass{
Test(IClass c, Test t, IType... args) {}
Test(IClass c, IType... args) {}
public static void main(String args[]) {
IClass c = null;
Test t = null;
Test t2 = new Test(c, t);
}
}
interface IType{}
interface IClass extends IType{}
- relates to
-
JDK-6199075 Unambiguous varargs method calls flagged as ambiguous
-
- Closed
-
-
JDK-6998691 Vararg method overloading fails
-
- Closed
-