You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jesse Anderson (JIRA)" <ji...@apache.org> on 2018/10/15 20:38:00 UTC
[jira] [Created] (AVRO-2242) SchemaBuilder Example Doesn't Compile
Jesse Anderson created AVRO-2242:
------------------------------------
Summary: SchemaBuilder Example Doesn't Compile
Key: AVRO-2242
URL: https://issues.apache.org/jira/browse/AVRO-2242
Project: Avro
Issue Type: Bug
Components: java
Affects Versions: 1.8.2
Reporter: Jesse Anderson
The JavaDoc example for SchemaBuilder doesn't compile. For 1.8.2 it says:
{code:java}
Schema schema = SchemaBuilder .record("HandshakeRequest").namespace("org.apache.avro.ipc) .fields() .name("clientHash").type().fixed("MD5").size(16).noDefault() .name("clientProtocol").type().nullable().stringType().noDefault() .name("serverHash").type("MD5") .name("meta").type().nullable().map().values().bytesType().noDefault() .endRecord();{code}
But should be:
{code:java}
Schema schema = SchemaBuilder .record("HandshakeRequest").namespace("org.apache.avro.ipc").fields() .name("clientHash").type().fixed("MD5").size(16).noDefault() .name("clientProtocol").type().nullable().stringType().noDefault() .name("serverHash").type("MD5").noDefault()
.name("meta").type().nullable().map().values().bytesType().noDefault() .endRecord();{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)