Hi Steve, Good analysis! I believe we can make the fix even more simpler by simply moving:
TestLogger test = new TestLogger(..); LogManager.getLogManager().addLogger(test); at the beginning of main. If we do that then we can get rid of the new local variable 'tl' and of the reachabilityFence() call. I see no real reason why the test wants to obtain the TestLogger test from the LogManager. If you wanted to be extra cautious in preserving the original test then you could also add: if (test != Logger.getLogger("com.foo.bar.zzz")) { throw new AssertionError("wrong logger returned for"); } in place of line 149... best regards, -- daniel On 05/04/2019 11:59, Steve Groeger wrote:
Hi all, Please could I have a review for this bug: https://bugs.openjdk.java.net/browse/JDK-8222027 The webrev is here: http://cr.openjdk.java.net/~sgroeger/8222027/webrev.00/ Thanks Steve Groeger IBM Runtime Technologies Hursley, Winchester Tel: (44) 1962 816911 Mobex: 279990 Mobile: 07718 517 129 Fax (44) 1962 816800 Lotus Notes: Steve Groeger/UK/IBM Internet: groe...@uk.ibm.com Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU