RFR: CODETOOLS-7902793: Fix IllegalMonitorStateException in JInternalFrameOperatorCloseTest

Abdul Kolarkunnu akolarkunnu at openjdk.java.net
Mon Dec 7 14:07:21 UTC 2020


On Thu, 3 Dec 2020 00:55:51 GMT, Alexandre Iline <shurailine at openjdk.org> wrote:

> What worked was to override setClosed(boolean) in JInternalFrame to not close the frame.
> 
> Also while inspecting the stack trace, I have discovered that the description is not passed down from JInternalFrameOperator.waitClosed()

test/org/netbeans/jemmy/operators/JInternalFrameOperatorCloseTest.java line 60:

> 58:         JemmyProperties.setCurrentDispatchingModel(
> 59:                 JemmyProperties.getCurrentDispatchingModel());
> 60:         internalFrame = new UncloseableInternalFrame("JInternalFrameOperatorTest", true, true, true, true);

Is it possible to make use of internalFrame.setClosable(false) API instead of overriding and having  a new class UncloseableInternalFrame.

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

PR: https://git.openjdk.java.net/jemmy-v2/pull/4


More information about the jemmy-dev mailing list