RFR: 8290765: Remove parent disabled/treeVisible listeners [v2]
Michael Strauß
mstrauss at openjdk.org
Fri Aug 26 04:43:14 UTC 2022
On Fri, 26 Aug 2022 03:43:49 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
> I haven't looked at the code yet, but in general it's not considered a good idea to expose an object before it's instantiated. Not sure if we have a choice here though.
I agree, that's why the `underConstruction` flag is used to prevent calling `getRoot()` and `getChildren()`, which would leak a partially constructed instance to derived classes.
-------------
PR: https://git.openjdk.org/jfx/pull/841
More information about the openjfx-dev
mailing list