RFR: 8286822: Write a test to check the DND functionality between two InternalFrames [v2]
Manukumar V S
mvs at openjdk.java.net
Thu Jun 2 08:14:23 UTC 2022
On Fri, 20 May 2022 07:51:28 GMT, Tejesh R <tr at openjdk.org> wrote:
>> Manukumar V S has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Following the process to convert a closed test to open, created a PR in closed space and got it reviewed, now updating this open PR
>
> 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?
In order to get the updated data all the time, as this variable will be updated from EDT and the value will be read from main thread also.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8753
More information about the client-libs-dev
mailing list