You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by th...@apache.org on 2017/05/22 02:29:31 UTC
avro git commit: Initialize GenericUnion to a valid state
Repository: avro
Updated Branches:
refs/heads/master 7fcd5eb33 -> 0b74bd5e7
Initialize GenericUnion to a valid state
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/0b74bd5e
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/0b74bd5e
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/0b74bd5e
Branch: refs/heads/master
Commit: 0b74bd5e7a37ccdb42918a0ab7768e9292df5dab
Parents: 7fcd5eb
Author: Thiruvalluvan M. G <th...@apache.org>
Authored: Mon May 22 07:56:11 2017 +0530
Committer: Thiruvalluvan M G <th...@aqfer.com>
Committed: Mon May 22 07:56:50 2017 +0530
----------------------------------------------------------------------
CHANGES.txt | 2 ++
lang/c++/api/GenericDatum.hh | 1 +
2 files changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/0b74bd5e/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 841f47f..49266cb 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -149,6 +149,8 @@ Trunk (not yet released)
AVRO-1997. Avro Field.defaultVal broken for Fixed fields. (Zoltan Farkasi via thiru)
+ AVRO-2033. GenericUnions constructor defaults to a broken state (Philip Rizk via thiru)
+
Avro 1.8.1 (14 May 2016)
INCOMPATIBLE CHANGES
http://git-wip-us.apache.org/repos/asf/avro/blob/0b74bd5e/lang/c++/api/GenericDatum.hh
----------------------------------------------------------------------
diff --git a/lang/c++/api/GenericDatum.hh b/lang/c++/api/GenericDatum.hh
index 2b1b3a4..edc4fbc 100644
--- a/lang/c++/api/GenericDatum.hh
+++ b/lang/c++/api/GenericDatum.hh
@@ -195,6 +195,7 @@ public:
*/
GenericUnion(const NodePtr& schema) :
GenericContainer(AVRO_UNION, schema), curBranch_(schema->leaves()) {
+ selectBranch(0);
}
/**