On Thu, 2 Jun 2022 08:11:20 GMT, Manukumar V S <m...@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

Reply via email to