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

The test "javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java" fails because the background color of the tabs is displayed incorrectly.

XMLWordPrintable

    • b11
    • generic
    • generic

      OS:
      Windows
      macOS
      Ubuntu Linux

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

      Operating System: Ubuntu 24.04 LTS x64
      Language: English
      Processor: Intel® Xeon® Silver 4210 × 8
      OS type: 64-bit
      Memory: 18 GB
      LAF: manual-laf-GTK-Dark

      Reproducible: Always

      Failed on Release/Build: JDK 23 b26
      Is it a Regression in JDK 23 release: NO
      [If Regression] Regression introduced in JDK 23 release/build: N/A
      Test result on the last GAed release for this train: Failed on JDK 23 b24
      Is it a platform-specific issue: No. This issue happens on Windows, macOS and Linux.

      General description of the problem:
      The background color of the tabs was displayed incorrectly.

      Affected test:
      javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java

      Steps to reproduce:

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

      jtreg \
      -ignore:quiet \
      -ea \
      -esa \
      -m \
      -gui \
      -nativepath:C:/Reg_Client/jdk-23-ea+26_windows-x64_bin-tests/jdk/jtreg/native \
      -exclude:C:/Reg_Client/closed/test/jdk/ProblemList.txt \
      -testjdk:C:/Reg_Client/jdk-23 \
      -dir:C:/Reg_Client/closed/test/jdk \
      -reportDir:results/JTreport \
      -workDir:results/JTwork \
      -timeoutHandlerDir:C:/Reg_Client/jdk-23-ea+26_windows-x64_bin-tests/failure_handler/jtregFailureHandler.jar \
      -observerDir:C:/Reg_Client/jdk-23-ea+26_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_desktop

            2. Run test case: javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java
            3. Observe the background color of the rectangle tabs below
            4. Click on the 'TabbedPane' tab
            5. Observe all components according to the tab's instructions

           Expected behavior:
      At step 3: The background color of the rectangle tabs below should be yellow
      At step 5: The background color of the rectangle 'Tab1' should be yellow with a red border
                      The background color of the rectangle 'Tab2' should be white with a red border
                      The background color of the rectangle 'Tab3' should be blue with a green border
                      The background color of the rectangle 'Tab4' should be black with a green border
         
           Actual behavior:
      At step 3: The background color of the rectangle tabs below is blue
      At step 5: The background color of the rectangle 'Tab1' is blue with a red border
                      The background color of the rectangle 'Tab2' is black with a red border
                      The background color of the rectangle 'Tab3' is yellow with a green border
                      The background color of the rectangle 'Tab4' is white with a green border

      Any non-default VM flags:
      'C:\\Reg_Client\\jdk-23\\bin\\java' \\
          -Dtest.vm.opts='-ea -esa' \\
          -Dtest.tool.vm.opts='-J-ea -J-esa' \\
          -Dtest.compiler.opts= \\
          -Dtest.java.opts= \\
          -Dtest.jdk='C:\\Reg_Client\\jdk-23' \\
          -Dcompile.jdk='C:\\Reg_Client\\jdk-23' \\
          -Dtest.timeout.factor=1.0 \\
          -Dtest.nativepath='C:\\Reg_Client\\jdk-23-ea+26_windows-x64_bin-tests\\jdk\\jtreg\\native' \\
          -Dtest.root='C:\\Reg_Client\\closed\\test\\jdk' \\
          -Dtest.name=javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java \\
          -Dtest.file='C:\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822\\bug5033822.java' \\
          -Dtest.src='C:\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822' \\
          -Dtest.src.path='C:\\Reg_Client\\closed\\test\\jdk\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822' \\
          -Dtest.classes='C:\\Reg_Client\\results\\JTwork\\classes\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822\\bug5033822.d' \\
          -Dtest.class.path='C:\\Reg_Client\\results\\JTwork\\classes\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822\\bug5033822.d' \\
          -Dtest.modules=java.desktop \\
          --add-modules java.desktop \\
          -ea \\
          -esa \\
          '-Djava.library.path=C:\\Reg_Client\\jdk-23-ea+26_windows-x64_bin-tests\\jdk\\jtreg\\native' \\
          com.sun.javatest.regtest.agent.MainWrapper 'C:\\Reg_Client\\results\\JTwork\\javax\\swing\\plaf\\synth\\ComponentsOrientationSupport\\5033822\\bug5033822.d\\main.0.jta'

      Note: Please see the attached picture "bug5033822-Pass_Windows_11_jdk_22_b36" to show an example of the test case's expected behavior

            abhiscxk Abhishek Kumar
            imtminhlh Minh Hoang Luu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: