Integrated: 8277965: Enclosing instance optimization affects serialization
Liam Miller-Cushon
cushon at openjdk.java.net
Thu Dec 2 19:20:20 UTC 2021
On Tue, 30 Nov 2021 01:59:55 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> This change disables the optimization introduced in [JDK-8271623](https://bugs.openjdk.java.net/browse/JDK-8277965) for all serializable classes, to avoid potential serialization compatibility issues.
>
> As discussed in [JDK-8277965](https://bugs.openjdk.java.net/browse/JDK-8277965) the serialization spec notes that serializing inner classes is 'strongly discouraged' and that the 'synthetic fields generated by javac ... to implement inner classes are implementation dependent and may vary between compilers', which may allow the new behaviour.
>
> This change is intended as an expedient way to restore the previous behaviour and provide more time to discuss the compatibility impact of this part of the change.
This pull request has now been integrated.
Changeset: 4f15be2c
Author: Liam Miller-Cushon <cushon at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/4f15be2cd41252d2e5a3f0832f07b98462e9076d
Stats: 20 lines in 2 files changed: 0 ins; 17 del; 3 mod
8277965: Enclosing instance optimization affects serialization
Reviewed-by: darcy
-------------
PR: https://git.openjdk.java.net/jdk/pull/6604
More information about the compiler-dev
mailing list