RFR: 8303740 JavaFX - Leak in Logging, Logging remembers last exception
Florian Kirmaier
fkirmaier at openjdk.org
Tue Mar 7 12:05:35 UTC 2023
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.
-------------
Commit messages:
- JDK-8303740
Changes: https://git.openjdk.org/jfx/pull/1053/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1053&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8303740
Stats: 33 lines in 3 files changed: 32 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jfx/pull/1053.diff
Fetch: git fetch https://git.openjdk.org/jfx pull/1053/head:pull/1053
PR: https://git.openjdk.org/jfx/pull/1053
More information about the openjfx-dev
mailing list