JDK-8309882 : LinkedHashMap adds an errant serializable field
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-06-12
  • Updated: 2023-07-12
  • Resolved: 2023-06-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22
21Fixed 22 b02Fixed
Related Reports
Blocks :  
CSR :  
Relates :  
Relates :  
Description
A new field 'putMode' had been added to LinkedHashMap in the initial Sequenced Collection implementation (JDK-8266571). Since the class is serializable, this resulted in an unintended change to the serial format. The field should be marked 'transient' to restore the previous serial format.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk21/pull/15 Date: 2023-06-13 20:20:32 +0000
13-06-2023

Changeset: e1386856 Author: Stuart Marks <smarks@openjdk.org> Date: 2023-06-13 15:16:28 +0000 URL: https://git.openjdk.org/jdk/commit/e138685648fb7a756a05f314af2883ce408abdd2
13-06-2023

This change was detected by serialization tests in the EclipseCollections project and reported through the Quality Outreach program. See https://github.com/eclipse/eclipse-collections/pull/1461 for some disucussion.
13-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14433 Date: 2023-06-13 00:03:35 +0000
13-06-2023