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

Generated code doesn't compile, because customDecode and customEncode are protected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.0
    • Component/s: java
    • Labels:
      None

      Description

      The generated code for

      {"namespace": "org.apache.avro.codegentest.some",
        "type": "record",
        "name": "NestedSomeNamespaceRecord",
        "doc" : "Test nested types with different namespace than the outer type",
        "fields": [
          {
            "name": "nestedRecord",
            "type": {
              "namespace": "org.apache.avro.codegentest.other",
              "type": "record",
              "name": "NestedOtherNamespaceRecord",
              "fields": [
                {
                  "name": "someField",
                  "type": "int"
                }
              ]
            }
          }]
      }
      

      doesn't compile, because customEncode and customDecode methods are protected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nkollar Nándor Kollár
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: