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.
This bug tracks making the optimization apply to serializable classes again, and will involve a CSR to discuss the compatibility impact on serialization.
- csr for
-
JDK-8278181 Omit enclosing instance fields from serializable inner classes that don't use it
-
- Draft
-
- relates to
-
JDK-8277965 Enclosing instance optimization affects serialization
-
- Closed
-
-
JDK-8271623 Omit enclosing instance fields from inner classes that don't use it
-
- Resolved
-