Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.7.5
-
None
-
None
Description
According to the specification, when a reader enum does not contain all symbols from the writer enum, an error should be signaled.
ResolvingGrammarGenerator fails to report such errors.
In particular, mkEnumAdjust() silently maps unknown symbols of the writers with symbols named "No match for [writer symbol]".
https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/ResolvingGrammarGenerator.java#L409
Shouldn't this instead create an ErrorAction?