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

Omit enclosing instance fields from serializable inner classes that don't use it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      The initial implementation of JDK-8271623 (Omit enclosing instance fields from inner classes that don't use it) applied to serializable classes, but the potential compatibility impact on serialization was not carefully considered in advance. The change broke a JCK test that involved serialization, and was partially reverted in JDK-8277965.

      This bug tracks making the optimization apply to serializable classes again, and will involve a CSR to discuss the compatibility impact on serialization.

        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: