ijuma commented on a change in pull request #9008: URL: https://github.com/apache/kafka/pull/9008#discussion_r456225427
########## File path: generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java ########## @@ -2078,6 +2103,11 @@ private void generateFieldEquals(FieldSpec field) { buffer.printf("if (!Arrays.equals(this.%s, other.%s)) return false;%n", field.camelCaseName(), field.camelCaseName()); } + } else if (field.type().isRecords()) { + // TODO is this valid for record instances? Review comment: That would mean loading data from disk to compute equals and hashCode for FileRecords. That's pretty unusual for such methods. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org