[
https://issues.apache.org/jira/browse/GROOVY-12456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-12456.
--------------------------------
Fix Version/s: 7.0.0-alpha-1
5.1.4
6.0.1
Resolution: Fixed
> Regression in SC: Binding failed for arguments
> ----------------------------------------------
>
> Key: GROOVY-12456
> URL: https://issues.apache.org/jira/browse/GROOVY-12456
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 5.0.3, 5.1.3, 6.0.0
> Reporter: Björn Kautler
> Assignee: Paul King
> Priority: Major
> Fix For: 7.0.0-alpha-1, 5.1.4, 6.0.1
>
>
> Given this snippet:
> {code:groovy}
> @groovy.transform.CompileStatic
> class Foo extends Specification {
> def foo() {
> expect:
> new Person(name: 'fred')
> }
> }
> class Person {
> def name
> }
> {code}
> If you run it in Groovy console, it works fine up to Groovy 4 and starts
> failing with Groovy 5 and newer with the message:
> {code}
> script.groovy: -1: Binding failed for arguments [java.lang.Object] and
> parameters [int, java.lang.Object] @ line -1, column -1. {code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)