JDK-8357455 : Support running multiple PassFailJFrame test cases in one process
  • Type: Enhancement
  • Component: client-libs
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-05-21
  • Updated: 2025-07-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Description
Sometimes it's necessary to run several manual test cases in one process. For example, iterating over all installed Look-and-Feels and verifying the same or slightly different scenarios.

Currently, many important data structures are static fields, including the latch that's used to wait for the test result. After the latch is released for the first time, it stays in the released state, which doesn't allow running additional scenarios in the same process. The instruction frame and list of windows are also static fields.

A substantial redesign is required of the internal structures of PassFailJFrame is required to support this scenario. Everything should be an instance field instead, that instance could be stored in a static variable to support all the static methods provided.
Comments
This issue was raised in code review [1] for JDK-8139228. [1] https://github.com/openjdk/jdk/pull/24439#discussion_r2100038079
04-07-2025