On Wed, 21 May 2025 06:39:47 GMT, Tejesh R <t...@openjdk.org> wrote:

> When I try to iterate the test for all L&F, the test result of first L&F is 
> explicitly taken for other L&F too. Any idea why ?

Indeed, `PassFailJFrame` doesn't support repeating tests. It never was a 
scenario that we thought of. There are lots of static fields, including the 
latch that's used to wait for the test result. The instruction frame and list 
of windows are also static fields.

Supporting repeating tests such as in this scenario would require a substantial 
redesign of the internal structures… Everything should be an instance field 
instead, that instance could be stored in a static variable to support all the 
static methods provided. Redesigning the `PassFailJFrame` framework this way 
would take significant amount of time.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24439#discussion_r2100038079

Reply via email to