On Wed, 22 Apr 2026 19:46:31 GMT, Phil Race <[email protected]> wrote:

> > > although properly you should do what I wrote above and invoke closeAll on 
> > > every loop
> > 
> > 
> > Ok, i did just that - added closeAll to every loop in addition to the 
> > `finally` clause - just to be sure that if unhandled exception happens we 
> > will close all windows regardless.
> 
> What about my comment that "Although it also seems that the variables should 
> be nulled out after being disposed and probably should be 'volatiie'" ?

Let me do that too - although the only consequence of not doing so is that we 
call `dispose` more than once which supposed to be safe.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/30729#issuecomment-4299542743

Reply via email to