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

Regression: bad overload resolution when inner class and outer class have method with same name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • tools
    • b82
    • Verified

      This program should not compile:

      class Test {

          void m(Object... o) { }

          class Inner {
              void m(String s) {
                  m(1, 1); //should fail
              }
          }
      }

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: