JDK 9 RFR for 8031068: java/util/logging/ParentLoggersTest.java: checkLoggers: getLoggerNames() returned unexpected loggers
daniel.fuchs at oracle.com
Wed Jan 8 17:34:57 UTC 2014
Please find below a patch for a test bug:
checkLoggers: getLoggerNames() returned unexpected loggers
As usual - the issue is that the test creates loggers without
keeping any strong reference - thus allowing for the possibility
that they will be garbage collected too soon.
I managed to reproduce systematically by adding a call to
System.gc() between the creation of the two loggers - and
passing -Xcomp -server to the VM.
With the fix the test no longer fails in that configuration.
More information about the core-libs-dev