I am using Apache Avro.
My schema has map type:
{\"name\": \"MyData\",
\"type\" : {\"type\": \"map\",
\"values\":{
This JIRA discussion is relevant. The main point of CharSequence still being used is backwards-compatability.
And like Charles Forsythe pointed out, there has been added a workaround for when String is necessary, by setting the string property in the schema.
{ "type": "string", "avro.java.string": "String" }
The default type here is their own Utf8 class. In addition to manual specification and the pom.xml setting, there is even an avro-tools compile option for it, the -string option:
java -jar avro-tools.1.7.5.jar compile -string schema /path/to/schema .