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/07/23 16:30:00 UTC

[jira] [Updated] (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 ]

Eric Milles updated GROOVY-10608:
---------------------------------
    Fix Version/s:     (was: 5.0.0-alpha-1)

> 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: 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.10#820010)