[
https://issues.apache.org/jira/browse/AVRO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896939#comment-16896939
]
Hudson commented on AVRO-2491:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #711 (See
[https://builds.apache.org/job/AvroJava/711/])
AVRO-2491: Deprecate Schema#createRecord from list of fields method (fokko:
[https://github.com/apache/avro/commit/1c5d3ff4ff78551edd4bab9824642d6918d3565d])
* (edit) lang/java/avro/src/main/java/org/apache/avro/Schema.java
* (edit) .gitignore
> 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
(v7.6.14#76016)