I created a PR now where I simply made the methods public, which fixes the 
regression but is not an ideal solution.

https://github.com/apache/avro/pull/511

//Katrin

On 2019-05-03, 12:36, "Nandor Kollar (JIRA)" <[email protected]> wrote:

    
         [ 
https://issues.apache.org/jira/browse/AVRO-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]
    
    Nandor Kollar updated AVRO-2386:
    --------------------------------
        Description: 
    The generated code for
    {code}
    {"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"
              }
            ]
          }
        }]
    }
    {code}
    doesn't compile, because customEncode and customDecode methods are 
protected.
    
      was:
    {code}
    {"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"
              }
            ]
          }
        }]
    }
    {code}
    
    
    > Generated code doesn't compile, because 
    > ----------------------------------------
    >
    >                 Key: AVRO-2386
    >                 URL: https://issues.apache.org/jira/browse/AVRO-2386
    >             Project: Apache Avro
    >          Issue Type: Bug
    >          Components: java
    >    Affects Versions: 1.9.0
    >            Reporter: Nandor Kollar
    >            Priority: Blocker
    >
    > The generated code for
    > {code}
    > {"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"
    >           }
    >         ]
    >       }
    >     }]
    > }
    > {code}
    > doesn't compile, because customEncode and customDecode methods are 
protected.
    
    
    
    --
    This message was sent by Atlassian JIRA
    (v7.6.3#76005)
    

Reply via email to