RFR: 8370511: test/jdk/javax/swing/JSlider/bug4382876.java does not release previously pressed keys [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 24 09:29:04 UTC 2025


On Fri, 24 Oct 2025 09:19:43 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

>> The test does not release previously pressed keys, which may cause failures in subsequent tests.
>> 
>> Testing looks good on all platforms.
>
> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   volatile

test/jdk/javax/swing/JSlider/bug4382876.java line 64:

> 62:                 slider.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
> 63:                 slider.putClientProperty("JSlider.isFilled", Boolean.TRUE);
> 64:                 f.add(slider, BorderLayout.CENTER);

also shouldn't we add the component i.e, slider first to frame and then make it visible? here it is made visible and then slider is added..

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27959#discussion_r2459494177


More information about the client-libs-dev mailing list