Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
15
-
b29
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8248029 | 16 | Mandy Chung | P3 | Resolved | Fixed | b03 |
JDK-8250075 | 15.0.2 | Mandy Chung | P3 | Resolved | Fixed | b01 |
JDK-8250373 | 15.0.1 | Mandy Chung | P3 | Resolved | Fixed | b03 |
Description
We should make final fields of records non-modifiable in a similar fashion as hidden classes.
Attachments
Issue Links
- backported by
-
JDK-8248029 Trust final fields in records
- Resolved
-
JDK-8250075 Trust final fields in records
- Resolved
-
JDK-8250373 Trust final fields in records
- Resolved
- csr for
-
JDK-8247517 Final fields in records are not reflectively modifiable
- Closed
- relates to
-
JDK-8247789 Remove use of reflection from test/jdk/java/io/Serializable/records/StreamRefTest.java
- Resolved
-
JDK-8247868 com.sun.jdi.ObjectReference::setValue should throw InvalidTypeException for non-modifiable final fields
- Resolved
-
JDK-8257596 Clarify trusted final fields for record classes
- Resolved
-
CODETOOLS-7902718 JDK-8247444 protections for Record offsets break JOL introspection
- Closed
-
JDK-8251324 derive sharper types for getfield values based on immutability and constructor actions
- Open