On Tue, 7 Mar 2023 11:59:20 GMT, Florian Kirmaier <fkirma...@openjdk.org> wrote:

> When an exception is logged in JavaFX, then the exception is kept in a 
> reference.
> This way, always the last logged exception is retained.
> 
> This is a memory-leak.
> This was done to write unit-tests to ensure certain error-cases are logged.
> 
> A simple fix is, to add a flag, to enable/disable retaining the exception.

Cleaning up the logging mechanism, while a good idea, is best done as a 
follow-up issue. Let's proceed with the currently proposed approach, or a 
similar minimally-intrusive solution for this leak.

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

PR: https://git.openjdk.org/jfx/pull/1053

Reply via email to