[ https://issues.apache.org/jira/browse/AVRO-4183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raphael Rösch updated AVRO-4183: -------------------------------- Description: 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'. PR: [avro#3492|https://github.com/apache/avro/pull/3492] was: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'. > '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 > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > 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'. > > PR: [avro#3492|https://github.com/apache/avro/pull/3492] -- This message was sent by Atlassian Jira (v8.20.10#820010)