You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/10/19 19:15:00 UTC

[jira] [Created] (GROOVY-10790) Immutable fails with defaults=true

Eric Milles created GROOVY-10790:
------------------------------------

             Summary: Immutable fails with defaults=true
                 Key: GROOVY-10790
                 URL: https://issues.apache.org/jira/browse/GROOVY-10790
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles


Consider the following:
{code:groovy}
@Immutable(defaults=true, noArg=false)
class Foo {
  String bar, baz
}
{code}

If "noArg=false" is removed there is a compiler error "Unable to compile class Foo due to hash collision in constructors".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)