From 10c8c9b98f936b655f6fce82b771f3c10dc16093 Mon Sep 17 00:00:00 2001 From: ktkk Date: Thu, 16 Jul 2026 08:19:34 +0000 Subject: [PATCH] Update record attribute formatting --- src/Class/AttributeInfo.zig | 2 +- testsuite/classes/java/Record.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 testsuite/classes/java/Record.java diff --git a/src/Class/AttributeInfo.zig b/src/Class/AttributeInfo.zig index 45eec02..5fbdc9f 100644 --- a/src/Class/AttributeInfo.zig +++ b/src/Class/AttributeInfo.zig @@ -625,7 +625,7 @@ pub const AttributeInfo = union(enum) { try w.splatByteAll(' ', depth * component_indent); try w.print("{d}:\n", .{ i }); - try component.indentedFormat(w, depth, component_indent, constant_pool); + try component.indentedFormat(w, depth, component_indent + 1, constant_pool); } }, .permitted_subclasses => |attr| { diff --git a/testsuite/classes/java/Record.java b/testsuite/classes/java/Record.java new file mode 100644 index 0000000..4eb2159 --- /dev/null +++ b/testsuite/classes/java/Record.java @@ -0,0 +1,2 @@ +public record Record(String name, int age) {} +