- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    None
- 
        b27
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8236320 | 15 | Vicente Arturo Romero Zaldivar | P2 | Resolved | Fixed | team | 
                    The below code tries to use repeating annotation on record component and should compile successfully. However, it leads to a compilation error.
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
@Target({ElementType.PARAMETER}) @interface ParameterLessContainer{ParameterLess[] value();}
@Repeatable(ParameterLessContainer.class)
@Target({ElementType.PARAMETER}) @interface ParameterLess {}
record R(@ParameterLess() @ParameterLess() int i) {
}
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
@Target({ElementType.PARAMETER}) @interface ParameterLessContainer{ParameterLess[] value();}
@Repeatable(ParameterLessContainer.class)
@Target({ElementType.PARAMETER}) @interface ParameterLess {}
record R(@ParameterLess() @ParameterLess() int i) {
}
- backported by
- 
                    JDK-8236320 Compilation error thrown when repeating annotation is used on record component -           
- Resolved
 
-