Description
I'm using avro Reflection API for a specific use case and I have a bug where if the object I'm trying to get the Schema for has a field of type BigDecimal. Because BigDecimal extends java.lang.Number, we try to create a primitive schema for it but fail doing so with the following error:
org.apache.avro.AvroRuntimeException: Not a Specific class: class java.math.BigDecimal
I'm attaching a unit test that shows the problem with a basic type that has a single BigDecimal field.
This basically also applied to all subclasses of java.lang.Number that are not primitives.