RFR: 8064922: [macos] Test javax/swing/JTabbedPane/4624207/bug4624207.java fails [v2]

Damon Nguyen dnguyen at openjdk.org
Tue Sep 23 17:50:47 UTC 2025


On Tue, 23 Sep 2025 17:44:57 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

>> Also you may want to check another test `EditableFocusTest` which also sets mnemonic "B" on a JButton and it passes in macOS..One difference is it uses setMnemonic(char) instead of setMnemonic(int)
>
> Thanks, I reversed the order of the release.

> Also you may want to check another test `EditableFocusTest` which also sets mnemonic "B" on a JButton and it passes in macOS..One difference is it uses setMnemonic(char) instead of setMnemonic(int)

I see that test's `setMnemonic`. This tabbedPane's API is forced to use `setMnemonicAt(int, int)`. I figured, since mnemonics don't seem to be supported on macOS anyway, it does not really make sense to ProblemList this test for macOS only, and instead just exclude macOS from the test since the test fails with the current implementation using `setMnemonicAt`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27371#discussion_r2373050146


More information about the client-libs-dev mailing list