RFR: 8286772: java/awt/dnd/DropTargetInInternalFrameTest/DropTargetInInternalFrameTest.html times out and fails in Windows [v2]

Tejesh R tr at openjdk.java.net
Fri Jun 3 15:08:33 UTC 2022


On Thu, 2 Jun 2022 08:11:20 GMT, Manukumar V S <mvs at openjdk.org> wrote:

>> 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.

I meant was it causing an issue in the previous test (before updating the test)?

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

PR: https://git.openjdk.java.net/jdk/pull/8753



More information about the client-libs-dev mailing list