[ 
https://issues.apache.org/jira/browse/AVRO-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064834#comment-17064834
 ] 

Andy Le commented on AVRO-2769:
-------------------------------

[~alexanderUV] would you please share the detail (esp the schema) ?

> After upgrade to 1.9.2, generated code for "put" uses value and value$
> ----------------------------------------------------------------------
>
>                 Key: AVRO-2769
>                 URL: https://issues.apache.org/jira/browse/AVRO-2769
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.2
>         Environment: macOS Catalina
> JDK 8 (oracle)
>            Reporter: Alexander Ubillus
>            Priority: Blocker
>
> After upgrade to 1.9.2, generated code for "put" uses value and value$, 
> causing compilation exceptions:
> {code:java}
>   // Used by DatumReader.  Applications should not call.
>   @SuppressWarnings(value="unchecked")
>   public void put(int field$, java.lang.Object value$) {
>     switch (field$) {
>     case 0: name = (java.lang.CharSequence)value; break;
>     case 1: length = (java.math.BigDecimal)value; break;
>     case 2: metadata = 
> (java.util.Map<java.lang.CharSequence,java.lang.CharSequence>)value; break;
>     default: throw new org.apache.avro.AvroRuntimeException("Bad index");
>     }
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to