Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.8.0, 1.8.1, 1.9-beta-1
-
None
-
None
-
Mac OS 10.6.7, Java 6
Description
See http://groovy.markmail.org/message/wuskviqggfgzos7r?q=1%2E8+incompatibility&page=1
I have methods that support named parameters via a Map and positional method with the same name. Works on 1.7.x but gives stack overflow error on 1.8.
foo('xxxx') def foo(final Map map) { println map } def foo(final name) { return foo(name: name) }
imac:info bob$ groovy test18.groovy Caught: java.lang.StackOverflowError at test18.foo(test18.groovy) at test18.foo(test18.groovy:8) at test18.foo(test18.groovy:8) at test18.foo(test18.groovy:8)