On Fri, 26 Aug 2022 03:43:49 GMT, Nir Lisker <nlis...@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

Reply via email to