Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346753

Test javax/swing/JMenuItem/RightLeftOrientation/RightLeftOrientation.java fails on Windows Server 2025 x64 because the icons of RBMenuItem and CBMenuItem are not visible in Nimbus LookAndFeel

XMLWordPrintable

    • b06
    • x86_64
    • windows

        OS:
        Windows

        Environments:
        Operating System: Windows Server 2025
        Language: English (Regional Setting: English)
        Processor: 11th Gen Intel(R) Core(TM) i5-1135G7 @2.49GHz 2.42GHz
        Memory: 8 GB
        System type: 64 bit
        LAF: manual-laf-Nimbus-Dark

        Reproducible: Always

        Failed on Release/Build: JDK_24_b23
        Is it a Regression in JDK 24 release: N/A
        [If Regression] Regression introduced in JDK 24 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 icons of RBMenuItem and CBMenuItem are not visible when the user selects the "Windows" Look and Feel menu.

        Affected test:
        javax/swing/JMenuItem/RightLeftOrientation/RightLeftOrientation.java

        Steps to reproduce:
             1. Run command:
        #!/bin/sh -x

        C:/Reg_Client/jtreg/bin/jtreg \
        -ignore:quiet \
        -m \
        -gui \
        -vmoption:-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel \
        -nativepath:C:/Reg_Client/jdk-24-ea+23_windows-x64_bin-tests/jdk/jtreg/native \
        -exclude:C:/Reg_Client/closed/test/jdk/ProblemList.txt \
        -testjdk:C:/Reg_Client/jdk-24 \
        -dir:C:/Reg_Client/closed/test/jdk \
        -reportDir:results/JTreport \
        -workDir:results/JTwork \
        -timeoutHandlerDir:C:/Reg_Client/jdk-24-ea+23_windows-x64_bin-tests/failure_handler/jtregFailureHandler.jar \
        -observerDir:C:/Reg_Client/jdk-24-ea+23_windows-x64_bin-tests/failure_handler/jtregFailureHandler.jar \
        -timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \
        -observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
        -timeoutHandlerTimeout:0 \
        C:/Reg_Client/closed/test/jdk/:jdk_swing

              2. Run the test case: javax/swing/JMenuItem/RightLeftOrientation/RightLeftOrientation.java
              3. Click on the 'Windows' Look and Feel menu
              4. Observe the icons of checkboxes and radio buttons

        Expected behavior:
        The icons of RBMenuItem and CBMenuItem should be visible.

        Actual behavior:
        The icons of RBMenuItem and CBMenuItem are not visible.
        ( see the videos and images attached )

              psadhukhan Prasanta Sadhukhan
              imthauld Hau Dinh Le
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: