groovy

Overloaded methods mismatched arguments

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical 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
  • Testcase included:
    yes
  • Number of attachments :
    1

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

Activity

Hide
blackdrag blackdrag added a comment -

looks like the fixes for GROOVY-2719 and GROOVY-2698 fixed this issue too

Show
blackdrag blackdrag added a comment - looks like the fixes for GROOVY-2719 and GROOVY-2698 fixed this issue too

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: