[
https://issues.apache.org/jira/browse/AVRO-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Anderson updated AVRO-2242:
---------------------------------
Description:
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}
was:
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}
> 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
> Priority: Minor
>
> 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)