RFR: 8353589: Open source a few Swing menu-related tests

Andrey Turbanov aturbanov at openjdk.org
Sat Apr 5 16:42:51 UTC 2025


On Fri, 4 Apr 2025 20:30:50 GMT, Phil Race <prr at openjdk.org> wrote:

> Open source a few tests related to Swing menus.

test/jdk/javax/swing/JPopupMenu/bug4119993.java line 92:

> 90:             cols[r] = "col " + r;
> 91:             for (int c = 0; c < 5; c ++) {
> 92:                data[r][c]  = "(" + r + "," + c + ")";

Suggestion:

               data[r][c] = "(" + r + "," + c + ")";

test/jdk/javax/swing/JPopupMenu/bug4119993.java line 102:

> 100:         p.add(scrollpane);
> 101: 
> 102:         String[] s = {"1","2","3","4","5", "6", "7", "8", "9", "10"};

Suggestion:

        String[] s = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"};

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24457#discussion_r2029914115
PR Review Comment: https://git.openjdk.org/jdk/pull/24457#discussion_r2029914173


More information about the client-libs-dev mailing list