Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1476

Make position field of org.apache.avro.Schema not transient.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.7, 1.8.0
    • 1.7.7
    • java
    • None

    Description

      Referring to: https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java#L358

      kryzthov did some research into possible causes/reasons for this field to be marked as transient but was unable to find any reason. The org.apache.avro.Schema class is not marked as serializable so this transient field serves no purpose. This transient field can cause odd behaviors with external serialization frameworks (and the built-in java serialization framework) when trying to serialize schemas.

      Attachments

        1. AVRO-1476.patch
          0.5 kB
          Robert Chu

        Activity

          People

            robertchu Robert Chu
            robertchu Robert Chu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: