avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject avro git commit: AVRO-2035: Java: validate default values when parsing schemas.
Date Mon, 26 Jun 2017 16:01:31 GMT
Repository: avro
Updated Branches:
  refs/heads/master 528a1c8a9 -> e5ae42e57


AVRO-2035: Java: validate default values when parsing schemas.


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/e5ae42e5
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/e5ae42e5
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/e5ae42e5

Branch: refs/heads/master
Commit: e5ae42e5703b8b193e5c2a61458e28a931c5774e
Parents: 528a1c8
Author: Doug Cutting <cutting@apache.org>
Authored: Thu Jun 22 09:54:44 2017 -0700
Committer: Doug Cutting <cutting@apache.org>
Committed: Thu Jun 22 09:54:44 2017 -0700

----------------------------------------------------------------------
 CHANGES.txt                                              | 2 ++
 lang/java/avro/src/main/java/org/apache/avro/Schema.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/e5ae42e5/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index d7b0ec1..f20b21d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,8 @@ Trunk (not yet released)
 
   INCOMPATIBLE CHANGES
 
+    AVRO-2035: Java: validate default values when parsing schemas. (cutting)
+
   NEW FEATURES
 
     AVRO-1704: Java: Add support for single-message encoding. (blue)

http://git-wip-us.apache.org/repos/asf/avro/blob/e5ae42e5/lang/java/avro/src/main/java/org/apache/avro/Schema.java
----------------------------------------------------------------------
diff --git a/lang/java/avro/src/main/java/org/apache/avro/Schema.java b/lang/java/avro/src/main/java/org/apache/avro/Schema.java
index 53e5e2e..c36ed97 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/Schema.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/Schema.java
@@ -958,7 +958,7 @@ public abstract class Schema extends JsonProperties {
   public static class Parser {
     private Names names = new Names();
     private boolean validate = true;
-    private boolean validateDefaults = false;
+    private boolean validateDefaults = true;
 
     /** Adds the provided types to the set of defined, named types known to
      * this parser. */


Mime
View raw message