RFR: 8271623: Omit enclosing instance fields from inner classes that don't use it [v3]
Liam Miller-Cushon
cushon at openjdk.java.net
Mon Nov 15 20:18:07 UTC 2021
On Fri, 12 Nov 2021 20:03:32 GMT, Florian Weimer <fweimer at openjdk.org> wrote:
> Is it desirable to do this change for `Serializable` inner classes? If they do not define `serialVersionUID`, it won't be possible to deserialize existing data.
@fweimer-rh thanks, I added logic to disable the optimization for `Serializable` inner classes which do not define `serialVersionUID`
-------------
PR: https://git.openjdk.java.net/jdk/pull/4966
More information about the compiler-dev
mailing list