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

varargs overloading problem

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      5.0
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b123
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: