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

Overloaded methods mismatched arguments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
    • Fix Version/s: 1.5.5, 1.6-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: