JDK-8335130 : The test "javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java" fails because the background color of the tabs is displayed incorrectly.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-06-26
  • Updated: 2024-11-26
  • Resolved: 2024-08-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b11Fixed
Related Reports
Relates :  
Description
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
Comments
Changeset: 9ab8c6b9 Branch: master Author: Abhishek Kumar <abhiscxk@openjdk.org> Date: 2024-08-09 05:09:27 +0000 URL: https://git.openjdk.org/jdk/commit/9ab8c6b9ba90ffd12600a250c8704571e9feb78d
09-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20091 Date: 2024-07-09 06:13:15 +0000
15-07-2024

[~vdyakov] Most probably it should be a test bug caused due to the recent product changes for JDK-8226990.
01-07-2024

Is it a test bug or product issue?
28-06-2024

Seems to be a regression of JDK-8226990 as it is failing from jdk23-b23 for TabbedPane in synthL&F
26-06-2024