[
https://issues.apache.org/jira/browse/AVRO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896927#comment-16896927
]
ASF subversion and git services commented on AVRO-2491:
-------------------------------------------------------
Commit 19d188d876e617f10e760e9e2460aec41598456e in avro's branch
refs/heads/branch-1.9 from Ismaël Mejía
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=19d188d ]
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.
(cherry picked from commit 1c5d3ff4ff78551edd4bab9824642d6918d3565d)
> 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)