Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2658

Overloaded methods mismatched arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
    • 1.5.5, 1.6-beta-1
    • None
    • None
    • Ubuntu Linux, JDK1.5.0, Groovy 1.5.4

    Description

      • When you have a number of overloaded methods in some Java code, one of which accepts
        an array of Interfaces as a parameter, the MetaclassImpl.chooseMostSpecificParams() and
        MetaClassHelper.calculateParameterDistance() fail to calculate the proper method call
        to invoke.
      • The attached project demonstrates the bug as a JUnit test case with Ant.

        $ant compile
        $ant run-test

      Attachments

        1. GroovyTest.tgz
          1 kB
          Stephan M. February

        Activity

          People

            blackdrag Jochen Theodorou
            stephanfeb Stephan M. February
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: