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

Details

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

    Description

      This program should not compile:

      class Test {

          void m(Object... o) { }

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: