Description
I've come across another example that does not resolve in 1.9.0 but did in 1.8.2:
public void testArrayInUnion() throws Exception { Schema writerSchema = SchemaBuilder.array().items().intType(); Schema readerSchema = SchemaBuilder.unionOf() .nullType() .and() .array().items().intType().endUnion(); ResolvingDecoder.resolve(writerSchema, readerSchema ); }
results in just the same kind of exception (even with pull request #526 applied)
java.lang.ClassCastException: org.apache.avro.Resolver$ReaderUnion cannot be cast to org.apache.avro.Resolver$Container
at org.apache.avro.io.parsing.ResolvingGrammarGenerator.generate(ResolvingGrammarGenerator.java:95)
at org.apache.avro.io.parsing.ResolvingGrammarGenerator.generate(ResolvingGrammarGenerator.java:65)
at org.apache.avro.io.ResolvingDecoder.resolve(ResolvingDecoder.java:85)