Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8368302 | 25.0.2 | Roger Riggs | P2 | Resolved | Fixed | master |
JDK-8368665 | 25.0.1 | Roger Riggs | P2 | Closed | Fixed | b08 |
The serialized form of LocalDate instances is not affected; the serialized form uses an externalized form in which the stream format is independent of the field types.
The purpose of the change was to enable packing fields more tightly in anticipation of converting to value classes in the Valhalla project.
The changed field types result in the serialized form of the classes being incompatible between JDK 25 and previous versions. The change was made in
When de-serializing, an exception is thrown:
`java.io.InvalidClassException: java.time.LocalDate; incompatible types for field day
at java.base/java.io.ObjectStreamClass.matchFields(ObjectStreamClass.java:2077)
`
- backported by
-
JDK-8368302 [backout] Change java.time month/day field types to 'byte'
-
- Resolved
-
-
JDK-8368665 [backout] Change java.time month/day field types to 'byte'
-
- Closed
-
- caused by
-
JDK-8334742 Change java.time month/day field types to 'byte'
-
- Closed
-
- csr for
-
JDK-8368496 [backout] Change java.time month/day field types to 'byte'
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk25u/00be643f
-
Commit(master) openjdk/jdk/0756ecb2
-
Review(jdk25) openjdk/jdk/27375
-
Review(master) openjdk/jdk25u/217
-
Review(master) openjdk/jdk/27346