[jdk25u-dev] RFR: 8361067: Test ExtraButtonDrag.java requires frame.dispose in finally block
Roland Mesde
duke at openjdk.org
Thu Feb 5 22:59:47 UTC 2026
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
-------------
Commit messages:
- Backport 21efd25c111726a00630e6ee9b316102f5ae41fb
Changes: https://git.openjdk.org/jdk25u-dev/pull/240/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=240&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8361067
Stats: 147 lines in 1 file changed: 59 ins; 23 del; 65 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/240.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/240/head:pull/240
PR: https://git.openjdk.org/jdk25u-dev/pull/240
More information about the jdk-updates-dev
mailing list