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

Provide a record-like equivalent

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1
    • Component/s: None
    • Labels:
      None

      Description

      This issue is to look at providing an equivalent to JDK14 records. In the first instance, something like:

      @RecordType
      class PersonRecord implements Person, Serializable {
          String firstName
          String lastName
      }
      

      Outside the scope of this issue, we can consider syntactic sugar in the grammar to have similar syntax to Java.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              paulk Paul King

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m

                  Issue deployment