You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/07/28 09:10:20 UTC

[jira] [Resolved] (GROOVY-7600) @Immutable support for Optional?

     [ https://issues.apache.org/jira/browse/GROOVY-7600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King resolved GROOVY-7600.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.5.0-beta-1

Proposed PR merged with suggested tweaks for test to only run on JDK8+

> @Immutable support for Optional?
> --------------------------------
>
>                 Key: GROOVY-7600
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7600
>             Project: Groovy
>          Issue Type: Improvement
>    Affects Versions: 2.4.4
>            Reporter: Christopher Smith
>            Assignee: Paul King
>             Fix For: 2.5.0-beta-1
>
>
> The {{@Immutable}} transform does not have any particular understanding of {{java.util.Optional}}. The holder class itself is immutable, but the logical immutability depends on the contained type. It would be helpful for {{@Immutable}} to understand such holder types and do its sanity check on the generic type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)