History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2486
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jochen Theodorou
Reporter: Luke Daley
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

getAt calls not selecting right implementation

Created: 09/Jan/08 07:26 PM   Updated: 08/Feb/08 01:26 AM
Component/s: None
Affects Version/s: 1.5.1
Fix Version/s: 1.6, 1.5.2

Time Tracking:
Not Specified

File Attachments: 1. Text File GROOVY-2486.patch (0.8 kb)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Luke Daley - 09/Jan/08 09:19 PM
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.

Paul King - 10/Jan/08 02:32 AM
patch added - thanks for spotting this.

Paul King - 08/Feb/08 01:26 AM
close off release 1.5.4