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

varargs overloading problem

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: