You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/02/22 05:27:00 UTC

[jira] [Commented] (GROOVY-7981) Not public constructors for groovy.transform.Immutable anotated class

    [ https://issues.apache.org/jira/browse/GROOVY-7981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16372429#comment-16372429 ] 

ASF GitHub Bot commented on GROOVY-7981:
----------------------------------------

GitHub user paulk-asert opened a pull request:

    https://github.com/apache/groovy/pull/665

    GROOVY-7981: Not public constructors for groovy.transform.Immutable a…

    …nnotated class

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy7981

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/665.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #665
    
----
commit e32ca2dc228d5d8212321c5eda81503ff6002760
Author: paulk <pa...@...>
Date:   2018-02-22T05:25:07Z

    GROOVY-7981: Not public constructors for groovy.transform.Immutable annotated class

----


> Not public constructors for groovy.transform.Immutable anotated class
> ---------------------------------------------------------------------
>
>                 Key: GROOVY-7981
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7981
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Dominik Przybysz
>            Priority: Major
>
> groovy.transform.Immutable annotation generates only public constructors for annotated class.
> I want to be able to create class with constructors with another modifiers e. g. private constructors and define static method create/build/from which will be the only way to create my immutable class.
> The pull request will be provided.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)