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

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.9.0
    • 1.9.0
    • java
    • 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

              Unassigned Unassigned
              nkollar Nándor Kollár
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: