On Tue, 7 Mar 2023 11:59:20 GMT, Florian Kirmaier <[email protected]> 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.

This pull request has now been integrated.

Changeset: 18e40216
Author:    Florian Kirmaier <[email protected]>
Committer: Kevin Rushforth <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/18e4021651c9e0db21f6817ed2c01ba4ca73781c
Stats:     74 lines in 3 files changed: 73 ins; 0 del; 1 mod

8303740: JavaFX - Leak in Logging, Logging remembers last exception

Reviewed-by: kcr

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

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

Reply via email to