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

Enclosing instance optimization affects serialization

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P2 P2
    • 18
    • tools
    • None
    • behavioral
    • low
    • Restore previous code generation idioms for Serializable nested classes.
    • Class file construct
    • Implementation

      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.

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

              Created:
              Updated:
              Resolved: