You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Roman Melnik (Jira)" <ji...@apache.org> on 2020/04/17 09:08:00 UTC

[jira] [Commented] (AVRO-2769) After upgrade to 1.9.2, generated code for "put" uses value and value$

    [ 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)