Enclosing instance optimization affects serialization

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P2
    • 18
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: