Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278042

Enclosing instance optimization affects serialization

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P2
    • Resolution: Approved
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Restore previous code generation idioms for Serializable nested classes.
    • Interface Kind:
      Class file construct
    • Scope:
      Implementation

      Description

      Summary

      Due to unexpectedly large serialization-related behavioral incompatibilities, revert the code generation optimization done under JDK-8271623 for serializable classes.

      Problem

      After JDK-8271623 was integrated, there was a cascade of test failures in the JDK 18 CI runs triggered by the change.

      Solution

      Revert to using this.$0 for serializable classes.

      Specification

      No specification changes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cushon Liam Miller-Cushon
              Reporter:
              cushon Liam Miller-Cushon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: