Avro
  1. Avro
  2. AVRO-720

Generated code for arrays should accept extensions of array content type

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None

      Description

      Discovered when I upgraded a server from 1.3 to 1.4: trying to stuff a GenericData.Array<Utf8> object into a List<CharSequence> does not work; Avro should generate List<? implements CharSequence> instead. The same holds for other array types.

      1. AVRO-720.patch
        0.9 kB
        Doug Cutting

        Issue Links

          Activity

            People

            • Assignee:
              Doug Cutting
              Reporter:
              Jeff Hammerbacher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development