Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10608

The default toString for emulated records has caching enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.3
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: