Java 16 レコードの生成されたコンストラクターに注釈を付ける必要があるConstructorPropertiesのような注釈を取得する方法はありますか? @Target(CONSTRUCTOR)
例えば:
@ConstructorProperties({"id", "filename"})
public record Person(long id, String filename) {}
この ^ により、次のエラーが発生します。
java: annotation type not applicable to this kind of declaration