RFR: 8341162: Open source some of the AWT window test [v2]
Alexey Ivanov
aivanov at openjdk.org
Fri Oct 4 13:57:34 UTC 2024
On Fri, 4 Oct 2024 06:44:57 GMT, Jayathirth D V <jdv at openjdk.org> wrote:
> If parent is disposed, i expect child components also to be disposed. I don't see any UI components after test is finished. Do we need to explicitly dispose all child components?
You're right: disposing of a window also disposes of all the owned windows.
https://github.com/openjdk/jdk/blob/db61458da840123925cb3ba079cfaf8277880320/src/java.desktop/share/classes/java/awt/Window.java#L1199-L1209
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21284#discussion_r1787758610
More information about the client-libs-dev
mailing list