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

AutoExternalize AST transform replaces custom read/write method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta-1, 2.5.7
    • Fix Version/s: 2.5.8, 3.0.0-beta-2
    • Component/s: Compiler
    • Labels:
      None

      Description

      A class defined as

      @groovy.transform.AutoExternalize
      class ClassUnderTest { 
          void writeExternal(ObjectOutput out) throws IOException { }
          void readExternal(ObjectInput oin) { }
      }
      

      Will override the definition of readExternal/writeExternal every single time.

      In contrast with @Canonical for example where explicit toString() is not overridden.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                aalmiray Andres Almiray
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: