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

Do not treat enum symbols as immutable when deep copying

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.7
    • 1.8.0
    • java
    • None
    • Reviewed

    Description

      Enum types should be supported in GenericData.deepCopy() so that we can convert from (in memory) generics records to specifics records.
      Without this fix in place, it is non-trivial to attempt to create specific records from generic records if they may happen to have any nested enum data types.

      This issue has already been pointed out by Doug Cutting which can be referenced at [1] and [2].
      In [2] specifically, Doug proposed the change that would fix this issue.

      [1] https://issues.apache.org/jira/browse/AVRO-1455?focusedCommentId=13899535&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13899535
      [2] http://mail-archives.apache.org/mod_mbox/avro-user/201402.mbox/%3CCALEq1Z9skcTci0h8RtNtyjaBDM1hn8yUUdTR2ft+czrvHtOD9g@mail.gmail.com%3E

      Attachments

        1. AVRO-1676.1.patch
          2 kB
          Sean Busbey

        Activity

          People

            busbey Sean Busbey
            mikerod Mike Rodriguez
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: