Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5088429

varargs overloading problem

XMLWordPrintable

    • 5.0
    • 5.0
    • b123
    • generic
    • generic
    • Verified

      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{}

            mcimadamore Maurizio Cimadamore
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: