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

AutoExternalize AST transform replaces custom read/write method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-beta-1, 2.5.7
    • 2.5.8, 3.0.0-beta-2
    • Compiler
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: