[
https://issues.apache.org/jira/browse/AVRO-3382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494412#comment-17494412
]
ASF subversion and git services commented on AVRO-3382:
-------------------------------------------------------
Commit b8e7d7d4134318ddd7713d610a339b0cea9e12a3 in avro's branch
refs/heads/master from Radai Rosenblatt
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=b8e7d7d ]
AVRO-3382 (java) - require Schema argument be != null when creating a
Schema.Field (#1550)
* AVRO-3382 (java) - require Schema argument be != null when creating a Schema
* address review comments
Co-authored-by: Radai Rosenblatt <[email protected]>
> avro allows creating Schema.FIelds with a null schema
> -----------------------------------------------------
>
> Key: AVRO-3382
> URL: https://issues.apache.org/jira/browse/AVRO-3382
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.0
> Reporter: radai rosenblatt
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> either directly, or like so:
> {code:java}
> Schema badSchema = SchemaBuilder.builder("com.acme").record("BadRecord")
> .fields().name("hasNoSchema").type((Schema) null).noDefault()
> .endRecord(); {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)