1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary smoke negative test for record classes
   4  * @compile/fail/ref=UserDefinedAccessorsMustBePublic.out -XDrawDiagnostics UserDefinedAccessorsMustBePublic.java
   5  */
   6 
   7 public record UserDefinedAccessorsMustBePublic(int i) {
   8     int i() { return i; }
   9 }