groovy

getAt calls not selecting right implementation

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.5.2, 1.6-rc-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

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.

Activity

Hide
Luke Daley added a comment -

I have attached a patch that fixes this. This seems a pretty severe bug. I am really surprised it didn't get caught by the tests. All tests pass after applying the patch.

Show
Luke Daley added a comment - I have attached a patch that fixes this. This seems a pretty severe bug. I am really surprised it didn't get caught by the tests. All tests pass after applying the patch.
Hide
Paul King added a comment -

patch added - thanks for spotting this.

Show
Paul King added a comment - patch added - thanks for spotting this.
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: