RFR: 8286822: Write a test to check the DND functionality between two InternalFrames
Tejesh R
duke at openjdk.java.net
Fri May 20 07:54:53 UTC 2022
On Tue, 17 May 2022 15:52:03 GMT, Manukumar V S <mvs at openjdk.org> wrote:
> This test verifies that dragging from one InternalFrame and a drop target in another InternalFrame functions properly.
> This fix moves an unstable closed applet based test to open regression based java test, but updated to be more comprehensive with some stabilisation improvements. The closed test was creating noise in CI as it often fails in Windows platform, especially in Windows 11.
>
> Testing:
> 1. Tested using mach5 20 times per platform and got all Pass.
> 2. Tested using mach5 5 times specifically on Windows 11 and got all Pass.
test/jdk/java/awt/dnd/DropTargetInInternalFrameTest.java line 244:
> 242: private final Dimension preferredDimension = new Dimension(200, 100);
> 243: private final CountDownLatch dropLatch;
> 244: private volatile int calledMethods = 0;
Any reason for changing calledMethods to volatile?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8753
More information about the client-libs-dev
mailing list