-
Sub-task
-
Resolution: Not an Issue
-
P3
-
None
@Target(ElementType.PARAMETER)
@interface DevAnnotation{ String value(); } record
R(@DevAnnotation(“devA”) String s) { // Error!
R(@DevAnnotation(“devB”) String s) {
// Explicitly declared canonical constructor
...
}
}
or
R(@DevAnnotation(“devA”) String s) { // Error!
R(String s) {
// Explicitly declared canonical constructor
...
}
}
this one should be erroneous too:
R(@DevAnnotation(“devA”) String s) { // Error!
R(@DevAnnotation(“devA”) String s) {
// Explicitly declared canonical constructor
...
}
}
@interface DevAnnotation{ String value(); } record
R(@DevAnnotation(“devA”) String s) { // Error!
R(@DevAnnotation(“devB”) String s) {
// Explicitly declared canonical constructor
...
}
}
or
R(@DevAnnotation(“devA”) String s) { // Error!
R(String s) {
// Explicitly declared canonical constructor
...
}
}
this one should be erroneous too:
R(@DevAnnotation(“devA”) String s) { // Error!
R(@DevAnnotation(“devA”) String s) {
// Explicitly declared canonical constructor
...
}
}
- csr for
-
JDK-8254331 New restrictions on annotations on record components
-
- Closed
-