RFR: 8213531: Test javax/swing/border/TestTitledBorderLeak.java fails [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Sat May 28 08:41:35 UTC 2022


On Fri, 27 May 2022 20:31:08 GMT, Phil Race <prr at openjdk.org> wrote:

> Can you confirm we still need the Frame ? I mean when does the used-to-be-leaky listener get installed ? If it is sufficient to add it to the panel and the panel doesn't need to be added to the frame then the test can be headless. But we need to be sure that doesn't skip what we want to test.

No, we dont need the frame. The leaky listener gets installed when we call `new TitledBorder()`

I have made the test headless which still fails without the fix and passes with TitledBorder fix and also pass in all CI headless platforms

-------------

PR: https://git.openjdk.java.net/jdk/pull/8450



More information about the client-libs-dev mailing list