-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b28
this code:
record R (@SafeVarargs String... s) {}
is accepted by the compiler when it shouldn't according to the spec, the annotation would be applicable to the accessor but the generated accessor won't have any varargs argument, no arguments at all actually.
record R (@SafeVarargs String... s) {}
is accepted by the compiler when it shouldn't according to the spec, the annotation would be applicable to the accessor but the generated accessor won't have any varargs argument, no arguments at all actually.
- relates to
-
JDK-8257855 Example SafeVarargsNotApplicableToRecordAccessors breaks test tools/javac/diags/CheckExamples.java
-
- Closed
-