RFR: 8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block [v9]
    Ravi Gupta 
    rgupta at openjdk.org
       
    Wed Aug  6 09:43:48 UTC 2025
    
    
  
> Test test/jdk/java/awt/Mouse/MouseModifiersUnitTest/ExtraButtonDrag.java left debris on system whenever fails its required frame.dispose() in finally block.
> 
> 
>  finally {
>             EventQueue.invokeAndWait(ExtraButtonDrag::disposeFrame);
>         }
>     public static void disposeFrame() {
>         if (frame != null) {
>             frame.dispose();
>             frame = null;
>         }
>     }
Ravi Gupta has updated the pull request incrementally with one additional commit since the last revision:
  8361067: Added review comment
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/26043/files
  - new: https://git.openjdk.org/jdk/pull/26043/files/fd70f19f..83a8bc7e
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26043&range=08
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26043&range=07-08
  Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/26043.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26043/head:pull/26043
PR: https://git.openjdk.org/jdk/pull/26043
    
    
More information about the client-libs-dev
mailing list