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

Generated code for arrays should accept extensions of array content type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java
    • 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.

      Attachments

        1. AVRO-720.patch
          0.9 kB
          Doug Cutting

        Issue Links

          Activity

            People

              cutting Doug Cutting
              hammer Jeff Hammerbacher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: