Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: 15
-
Fix Version/s: 15
-
Component/s: specification
-
Labels:
-
Subcomponent:
-
Resolved In Build:b28
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247674 | 16 | Gavin Bierman | P4 | Resolved | Fixed | b02 |
JDK-8249974 | 15.0.2 | Gavin Bierman | P4 | Resolved | Fixed | b01 |
JDK-8250273 | 15.0.1 | Gavin Bierman | P4 | Resolved | Fixed | b03 |
Description
In the draft language specification for Records, it is stated that "The access modifier of a canonical constructor for a record class must provide at least as much access as the record class" The specification continues by considering the different cases of accessibility, but the case for a record class that is private is missing.
The missing case should read:
- If the record class is `private`, then the canonical constructor may be
declared with any accessibility.
The missing case should read:
- If the record class is `private`, then the canonical constructor may be
declared with any accessibility.
Attachments
Issue Links
- backported by
-
JDK-8247674 Records: Specify permitted accessibility of canonical constructor of a private record class
-
- Resolved
-
-
JDK-8249974 Records: Specify permitted accessibility of canonical constructor of a private record class
-
- Resolved
-
-
JDK-8250273 Records: Specify permitted accessibility of canonical constructor of a private record class
-
- Resolved
-
- relates to
-
JDK-8247701 canonical constructor of private records can have any accessibility
-
- Resolved
-