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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.7, 1.8.0
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None

      Description

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

      Christophe Taton 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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: