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 2022/04/29 06:38:00 UTC

[jira] [Resolved] (GROOVY-10608) The default toString for emulated records has caching enabled

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

Paul King resolved GROOVY-10608.
--------------------------------
    Fix Version/s: 5.0.0-alpha-1
                   4.0.3
         Assignee: Paul King
       Resolution: Fixed

> The default toString for emulated records has caching enabled
> -------------------------------------------------------------
>
>                 Key: GROOVY-10608
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10608
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.0-alpha-1, 4.0.3
>
>
> Since records only provide shallow immutability, we should default to not caching. Later, as a future enhancement, we could turn caching back on if we can determine that all record components are indeed immutable, e.g. all primitives or Strings for instance. For now, caching would be enabled using a custom @ToString.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)