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.
Simple fix is, to add a flag, to enable/disable retaining the exception.
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.
Simple fix is, to add a flag, to enable/disable retaining the exception.