martin-g commented on code in PR #3547:
URL: https://github.com/apache/avro/pull/3547#discussion_r2526524008


##########
lang/java/compiler/src/main/velocity/org/apache/avro/compiler/specific/templates/java/classic/record.vm:
##########
@@ -624,7 +624,7 @@ public class 
${this.mangleTypeIdentifier($schema.getName())} extends ${this.getS
 #foreach ($field in $schema.getFields())
 #if (!${this.ignoredField($field)})
 #set ($n = ${this.mangle($field.name(), $schema.isError())})
-    result = 31 * result + ${this.hashCodeFor($field.schema(), $n)};
+    result = 31 * result + ${this.hashCodeFor($field.schema(), "this." + $n)};

Review Comment:
   I don't get this one.
   `$n` is defined two lines above. It looks like a local variable to me.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to