[ 
https://issues.apache.org/jira/browse/AVRO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fokko Driesprong resolved AVRO-2491.
------------------------------------
    Resolution: Fixed

> Schema.createRecord allows to create non parseable Schemas
> ----------------------------------------------------------
>
>                 Key: AVRO-2491
>                 URL: https://issues.apache.org/jira/browse/AVRO-2491
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.0
>            Reporter: Ismaël Mejía
>            Assignee: Ismaël Mejía
>            Priority: Major
>             Fix For: 1.10.0, 1.9.1
>
>
> Avro's API allows to create Schema objects that are not parseable by Avro. We 
> probably must document this behavior in detail and deprecate the method that 
> allows to do this for a future release. Example of creating an unparseable 
> schema (it does not have a name and no public API to assign it a name):
> {quote}Schema schema = Schema.createRecord(new ArrayList<>());
>  Schema parsedSchema = new Schema.Parser().parse(schema.toString());
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to