Description
in the SepcificData class, the protected Schema createSchema(java.lang.reflect.Type type, Map<String,Schema> names) fails in creating a schema for the Map type.
Looking at this excerpt,
else if (Map.class.isAssignableFrom(raw))
{ // map java.lang.reflect.Type key = params[0]; java.lang.reflect.Type value = params[1]; if (!(type instanceof Class && CharSequence.class.isAssignableFrom((Class)type))) throw new AvroTypeException("Map key class not CharSequence: "+key); return Schema.createMap(createSchema(value, names)); }The type is a map, the key is a string. therefore instead of "if (Unable to render embedded object: File ((type instanceof Class" it should be "if () not found.(key instanceof Class".