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/11/21 20:23:00 UTC
[jira] [Resolved] (GROOVY-10790) Immutable fails with defaults=true
[ https://issues.apache.org/jira/browse/GROOVY-10790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-10790.
----------------------------------
Fix Version/s: 4.0.7
Resolution: Fixed
https://github.com/apache/groovy/commit/075068395f6c75227d12162104263ed4f113f17a
> Immutable fails with defaults=true
> ----------------------------------
>
> Key: GROOVY-10790
> URL: https://issues.apache.org/jira/browse/GROOVY-10790
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.5.19, 3.0.13, 4.0.6
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 4.0.7
>
>
> 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)