[jdk25u-dev] Integrated: 8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block

Roland Mesde duke at openjdk.org
Wed Feb 11 16:48:26 UTC 2026


On Thu, 5 Feb 2026 17:36:30 GMT, Roland Mesde <duke at openjdk.org> wrote:

> Backporting JDK-8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block.
> 
> This PR fixes ExtraButtonDrag.java to properly dispose frame on test failure and refactors test code.
> 
> For parity with Oracle JDK.
> 
> Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
> 
> make test TEST=test/jdk/java/awt/Mouse/MouseModifiersUnitTest/ExtraButtonDrag.java
> 
> Results attached:
> 
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/25113974/windows-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25113976/macos-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/25113977/linux-x64-specific-test.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25113978/linux-aarch64-specific-test.log)

This pull request has now been integrated.

Changeset: 8174e08f
Author:    Roland Mesde <mesde at amazon.com>
Committer: Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/8174e08f40d6df4c717a05c473e97508cb3c61bd
Stats:     147 lines in 1 file changed: 59 ins; 23 del; 65 mod

8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block

Backport-of: 21efd25c111726a00630e6ee9b316102f5ae41fb

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

PR: https://git.openjdk.org/jdk25u-dev/pull/240


More information about the jdk-updates-dev mailing list