You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/05/07 18:24:00 UTC
[jira] [Commented] (AVRO-2386) Generated code doesn't compile,
because customDecode and customEncode are protected
[ https://issues.apache.org/jira/browse/AVRO-2386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16834995#comment-16834995 ]
ASF subversion and git services commented on AVRO-2386:
-------------------------------------------------------
Commit e250dcc0ae0e3b32ce9d1cad0e9f580dbd241b15 in avro's branch refs/heads/master from Katrin Skoglund
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e250dcc ]
AVRO-2386: Make customEncode and customDecode public (#511)
* Make customEncode and customDecode methods public
* Make methods in superclass public
> Generated code doesn't compile, because customDecode and customEncode are protected
> -----------------------------------------------------------------------------------
>
> 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)