RFR: 8295707: Create a regression test for JDK-7184401 [v2]

Srinivas Mandalika smandalika at openjdk.org
Mon Nov 7 07:28:05 UTC 2022


On Thu, 3 Nov 2022 07:58:17 GMT, Srinivas Mandalika <smandalika at openjdk.org> wrote:

>> test/jdk/java/awt/EventDispatchThread/InterruptEDTTest.java line 86:
>> 
>>> 84:         ((sun.awt.SunToolkit) (Toolkit.getDefaultToolkit())).realSync();
>>> 85:         try {
>>> 86:             EventQueue.invokeAndWait(() -> {
>> 
>> This is duplicate code in Line# 67 to Line# 72.
>
> The intent was to ensure latest values are picked up, thereby ensuring the stability of the code.  But I see the point that it does add value since there is not change in the frame position. Will remove it.

[Fixed Review Comments: Removed redundant code](https://github.com/openjdk/jdk/pull/10784/commits/ad0a62400b5bcd95c01174e85ee8c7834be39fed)

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

PR: https://git.openjdk.org/jdk/pull/10784



More information about the client-libs-dev mailing list