[ https://issues.apache.org/jira/browse/AVRO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896925#comment-16896925 ]
ASF subversion and git services commented on AVRO-2491: ------------------------------------------------------- Commit 1c5d3ff4ff78551edd4bab9824642d6918d3565d in avro's branch refs/heads/master from Ismaël Mejía [ https://gitbox.apache.org/repos/asf?p=avro.git;h=1c5d3ff ] AVRO-2491: Deprecate Schema#createRecord from list of fields method (#598) This method should be removed in the future because it allows to create invalid schemas (without name) that are not Parseable by Avro. > 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.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 (v7.6.14#76016)