Test "javax/swing/JMenuItem/6458123/ManualBug6458123.java" fails because the check icons are not aligned properly as expected

XMLWordPrintable

    • b11
    • 26
    • b06
    • x86_64
    • windows

        OS:
        Windows

        Environments:
        Operating System: Windows 11 x64
        Version: 25H2
        Language: English (Regional Setting: English)
        Processor: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz 2.19 GHz (2 processors)
        OS type: 64-bit
        Memory: 8 GB
        LAF: Default, manual-laf-Windows-Dark, manual-laf-Nimbus-Dark

        Reproducible: Always

        Failed on Release/Build: JDK_26_b27
        Is it a Regression in JDK 26 release: N/A
        [If Regression] Regression introduced in JDK 26 release/build: N/A
        Test result on the last GAed release for this train: N/A
        Is it a platform-specific issue: Yes. This issue only happens on Windows.

        General description of the problem:
        The check icons are not aligned properly as expected.

        Affected test:
        javax/swing/JMenuItem/6458123/ManualBug6458123.java

        Steps to reproduce:
        #!/bin/sh -x
        export JAVA_HOME=C:/Users/Windows11/Desktop/Reg_Client/jdk-26
        export JT_HOME=C:/Users/Windows11/Desktop/Reg_Client/jtreg
        export PATH=$PATH:$JAVA_HOME/bin:$JT_HOME/bin

        C:/Users/Windows11/Desktop/Reg_Client/jtreg/bin/jtreg \
        -verbose:summary \
        -m \
        -gui \
        -conc:1 \
        -nativepath:C:/Users/Windows11/Desktop/Reg_Client/jdk-26-ea+27_windows-x64_bin-tests/jdk/jtreg/native \
        -exclude:C:/Users/Windows11/Desktop/Reg_Client/open/test/jdk/ProblemList.txt \
        -exclude:C:/Users/Windows11/Desktop/Reg_Client/closed/test/jdk/ProblemList.txt \
        -testjdk:C:/Users/Windows11/Desktop/Reg_Client/jdk-26 \
        -dir:C:/Users/Windows11/Desktop/Reg_Client/closed/test/jdk \
        -reportDir:results/JTreport \
        -workDir:results/JTwork \
        C:/Users/Windows11/Desktop/Reg_Client/closed/test/jdk/:jdk_desktop

              2. Run the test case: javax/swing/JMenuItem/6458123/ManualBug6458123.java
              3. Click on the 'Windows' Look and Feel menu
              4. Observe the UI in "First R2L", "Third R2L" menu items

        Expected behavior:
        The check icons should be aligned properly.

        Actual behavior:
        The check icons are not aligned properly as expected.

        Any non-default VM flags:
        'C:\\Users\\Windows11\\Desktop\\Reg_Client\\jdk-26\\bin\\java' \\
                -Dtest.vm.opts= \\
                -Dtest.tool.vm.opts= \\
                -Dtest.compiler.opts= \\
                -Dtest.java.opts= \\
                -Dtest.jdk='C:\\Users\\Windows11\\Desktop\\Reg_Client\\jdk-26' \\
                -Dcompile.jdk='C:\\Users\\Windows11\\Desktop\\Reg_Client\\jdk-26' \\
                -Dtest.timeout.factor=1.0 \\
                -Dtest.nativepath='C:\\Users\\Windows11\\Desktop\\Reg_Client\\jdk-26-ea+27_windows-x64_bin-tests\\jdk\\jtreg\\native' \\
                -Dtest.root='C:\\Users\\Windows11\\Desktop\\Reg_Client\\closed\\test\\jdk' \\
                -Dtest.name=javax/swing/JMenuItem/6458123/ManualBug6458123.java \\
                -Dtest.verbose=Verbose[p=DEFAULT,f=DEFAULT,e=DEFAULT,t=false,m=false] \\
                -Dtest.file='C:\\Users\\Windows11\\Desktop\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\JMenuItem\\6458123\\ManualBug6458123.java' \\
                -Dtest.main.class=ManualBug6458123 \\
                -Dtest.src='C:\\Users\\Windows11\\Desktop\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\JMenuItem\\6458123' \\
                -Dtest.src.path='C:\\Users\\Windows11\\Desktop\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\JMenuItem\\6458123;C:\\Users\\Windows11\\Desktop\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\regtesthelpers' \\
                -Dtest.classes='C:\\Users\\Windows11\\Desktop\\Reg_Client\\results\\JTwork\\classes\\javax\\swing\\JMenuItem\\6458123\\ManualBug6458123.d' \\
                -Dtest.class.path='C:\\Users\\Windows11\\Desktop\\Reg_Client\\results\\JTwork\\classes\\javax\\swing\\JMenuItem\\6458123\\ManualBug6458123.d;C:\\Users\\Windows11\\Desktop\\Reg_Client\\results\\JTwork\\classes\\javax\\swing\\JMenuItem\\6458123\\ManualBug6458123.d\\javax\\swing\\regtesthelpers' \\
                -Dtest.modules=java.desktop \\
                --add-modules java.desktop \\
                '-Djava.library.path=C:\\Users\\Windows11\\Desktop\\Reg_Client\\jdk-26-ea+27_windows-x64_bin-tests\\jdk\\jtreg\\native' \\
                com.sun.javatest.regtest.agent.MainWrapper 'C:\\Users\\Windows11\\Desktop\\Reg_Client\\results\\JTwork\\javax\\swing\\JMenuItem\\6458123\\ManualBug6458123.d\\main.0.jta'
        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Menu items are laied out improperly


        test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Menu items are laied out improperly

          1. First R2L.png
            First R2L.png
            269 kB
          2. ManualBug6458123.jtr
            10 kB
          3. Third R2L.png
            Third R2L.png
            314 kB

              Assignee:
              Prasanta Sadhukhan
              Reporter:
              Hau Dinh Le
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: