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

getAt calls not selecting right implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6-rc-2
    • None
    • None

    Description

      class Example {

      def getAt(String a, String b)

      { return 1 }

      def getAt(String a)

      { return 2 }

      }

      def e = new Example()

      println e["", ""]

      Works in 1.5.0, bails in 1.5.1

      Complains that there is no version of getAt that takes an ArrayList parameter.

      Attachments

        1. GROOVY-2486.patch
          0.8 kB
          Luke Daley

        Activity

          People

            blackdrag Jochen Theodorou
            ldaley Luke Daley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: