-
Bug
-
Resolution: Fixed
-
P4
-
9, 10
QPathTest checks whether any exceptions are logged from the Marlin rasterizer as a result of running the test program. However, since it does not hold a strong reference to the logger, the logger is subject to garbage collection, which means that if an exception were to be logged by Marlin, the test would likely not catch it (depending on whether GC runs or not).
I discovered this error while debugging the test programs forJDK-8177566, since I used the same approach for some of the unit tests for that bug.
The fix is to declare the "log" variable, which is currently a local variable in the static block, as a private static class variable.
I discovered this error while debugging the test programs for
The fix is to declare the "log" variable, which is currently a local variable in the static block, as a private static class variable.