Avro
  1. Avro
  2. AVRO-1476

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

      1. AVRO-1476.patch
        0.5 kB
        Robert Chu

        Activity

        Doug Cutting made changes -
        Issue Type Task [ 3 ] Improvement [ 4 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Doug Cutting made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Christophe Taton [ kryzthov ] Robert Chu [ robertchu ]
        Resolution Fixed [ 1 ]
        Christophe Taton made changes -
        Assignee Christophe Taton [ kryzthov ]
        Doug Cutting made changes -
        Fix Version/s 1.7.7 [ 12326041 ]
        Robert Chu made changes -
        Attachment AVRO-1476.patch [ 12633279 ]
        Robert Chu made changes -
        Field Original Value New Value
        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.
        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.
        Robert Chu created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development