Unit test TestSimpleGeneration#testSchemaForUntypedMap fails in 2.13 branch.
UnsupportedOperationException exception is thrown instead of expected InvalidDefinitionException exception.
[ERROR] Errors:
[ERROR] TestSimpleGeneration.testSchemaForUntypedMap:166 » UnsupportedOperation Maps w...
Stack trace:
java.lang.UnsupportedOperationException: Maps with non-stringable keys are not supported yet
at com.fasterxml.jackson.dataformat.avro.schema.MapVisitor.builtAvroSchema(MapVisitor.java:40)
at com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.getAvroSchema(VisitorFormatWrapperImpl.java:68)
at com.fasterxml.jackson.dataformat.avro.schema.AvroSchemaGenerator.getGeneratedSchema(AvroSchemaGenerator.java:20)
at com.fasterxml.jackson.dataformat.avro.AvroMapper.schemaFor(AvroMapper.java:187)
at com.fasterxml.jackson.dataformat.avro.schema.TestSimpleGeneration.testSchemaForUntypedMap(TestSimpleGeneration.java:166)
In 2.13 UnknownSerializer calls visitor.expectObjectFormat(typeHint) whereas in 2.12, UnknownSerializer calls visitor.expectAnyFormat(typeHint).
It is since FasterXML/jackson-databind@f19e26e
I think the whole fix is to update exception evaluation.
Unit test
TestSimpleGeneration#testSchemaForUntypedMapfails in2.13branch.UnsupportedOperationExceptionexception is thrown instead of expectedInvalidDefinitionExceptionexception.Stack trace:
In 2.13
UnknownSerializercallsvisitor.expectObjectFormat(typeHint)whereas in 2.12,UnknownSerializercallsvisitor.expectAnyFormat(typeHint).It is since FasterXML/jackson-databind@f19e26e
I think the whole fix is to update exception evaluation.