Raphael Rösch created AVRO-4183:
-----------------------------------

             Summary: 'result' variable in generated hashCode method shadows 
field 'result'
                 Key: AVRO-4183
                 URL: https://issues.apache.org/jira/browse/AVRO-4183
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.12.1
            Reporter: Raphael Rösch


The [local variable 'result' in the generated 
hashCode-Method|https://github.com/apache/avro/blob/6db1f79e22e8558ac0455cf73f6e1fb7d1139f44/lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm#L623]
 (AVRO-3527) shadows the field name 'result'. That means, that the generated 
code is invalid if the record schema has a field with the name 'result'.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to