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

Roman Melnik commented on AVRO-2769:
------------------------------------

Same issue for me. It is reproduced for me with this plugin enabled:

classpath 'org.owasp:dependency-check-gradle:2.1.1'

Updating the plugin to the latest version 5.3.2 resolves the issue.

Looks strange but I have no chance to investigate it deeper.

> 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