Integrated: 8341982: Simplify JButton/bug4323121.java

Alexey Ivanov aivanov at openjdk.org
Wed Dec 4 13:32:48 UTC 2024


On Fri, 11 Oct 2024 18:20:52 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The test `javax/swing/JButton/bug4323121.java` contains lots of unused methods.
> 
> I removed all the unused methods by extending `MouseAdapter`.
> 
> I use `CountDownLatch` to synchronise actions in the test.
> 
> The test still verifies `button.getModel().isArmed()` doesn't always return `true` for classes which extend `JButton`. I verified the updated test fails in 1.3.0 and passes in 1.4.0, so the test still reproduces the original problem.

This pull request has now been integrated.

Changeset: 6fa5cea9
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6fa5cea984c31fbb74b39e1eec68daffea22ca92
Stats:     85 lines in 1 file changed: 24 ins; 40 del; 21 mod

8341982: Simplify JButton/bug4323121.java

Reviewed-by: abhiscxk, honkar, dnguyen, achung

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

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


More information about the client-libs-dev mailing list