ASM RecordComponentVisitor does not visit component annotations
I created this example using the "record preview" support in OpenJDK15:
package org.testing;
public record ExampleRecord(
String name,
@MyAnnotation int number,
long bigNumber
) {
public String getMessage() {
return String.format("name:[%s], number:[%d]. bigNumber:[%ld]", name, number, bigNumber);
}
}
When I fed this class into ASM 9.1, the RecordComponentVisitor
did not visit the number
component's annotation. However, the annotation was visited by the component's FieldVisitor
.
Have I completely misunderstood how to use a RecordComponentVisitor
please? But if so, what other "record component annotations" are there to visit?
Thanks, Chris