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

Test "javax/swing/JOptionPane/bug4174551.java" failed because the font size of message "Hi 24" is not set to 24 in Nimbus LookAndFeel

XMLWordPrintable

    • b05
    • x86_64
    • generic

      OS:
      Linux
      Windows

      Environments:
      Operating System: Oracle Linux 9.3 x64
      Language: English (Regional Setting: English)
      Processor: Intel® Core™ i5-7200U CPU @ 2.50GHz × 2
      OS type: 64-bit
      Memory: 8 GB
      LAF: manual-laf-Nimbus-Dark

      Operating System: Windows 10 x64
      Language: English (Regional Setting: English)
      Processor: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz 2.00 GHz
      OS type: 64-bit
      Memory: 20 GB
      LAF: manual-laf-Nimbus-Dark

      Operating System: Ubuntu 24.04.1 LTS
      Hardware Model: innotek GmbH VirtualBox
      Processor: 11th Gen Intel® Core™ i5-1135G7 × 8
      Memory: 8 GiB
      Disk Capacity: 64 GB
      LAF: N/A

      Reproducible: Always

      Failed on Release/Build: JDK 24
      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: No. This issue happens on Linux, Windows. Not test on macOS yet.

      General description of the problem:
      The font size of message "Hi 24" is not set to 24.

      Affected test:
      javax/swing/JOptionPane/bug4174551.java

      Steps to reproduce:

           1. Run command:
      #!/bin/sh -x
      export JAVA_HOME=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jdk-24
      export JT_HOME=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jtreg
      export PATH=$PATH:$JAVA_HOME/bin:$JT_HOME/bin

      jtreg \
      -ignore:quiet \
      -m \
      -gui \
      -vmoptions:-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel \
      -nativepath:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/bin-test/jdk/jtreg/native \
      -exclude:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/ProblemList.txt \
      -testjdk:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jdk-24 \
      -dir:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk \
      -reportDir:results/JTreport \
      -workDir:results/JTwork \
      -timeoutHandlerDir:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/bin-test/failure_handler/jtregFailureHandler.jar \
      -observerDir:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/bin-test/failure_handler/jtregFailureHandler.jar \
      -timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \
      -observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
      -timeoutHandlerTimeout:0 \
      /home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/:jdk_swing


            2. Run test case: javax/swing/JOptionPane/bug4174551.java
            3. Observe the font size of message "Hi 24" is set to 24
             
      Expected behavior:
      The font size of message "Hi 24" is set to 24

      Actual behavior:
      The font size of message "Hi 24" is not set to 24

      Any non-default VM flags
      /home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jdk-24/bin/java \\
              -Dtest.vm.opts=-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel \\
              -Dtest.tool.vm.opts=-J-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel \\
              -Dtest.compiler.opts= \\
              -Dtest.java.opts= \\
              -Dtest.jdk=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jdk-24 \\
              -Dcompile.jdk=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/jdk-24 \\
              -Dtest.timeout.factor=1.0 \\
              -Dtest.nativepath=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/bin-test/jdk/jtreg/native \\
              -Dtest.root=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk \\
              -Dtest.name=javax/swing/JOptionPane/bug4174551.java \\
              -Dtest.file=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/javax/swing/JOptionPane/bug4174551.java \\
              -Dtest.src=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/javax/swing/JOptionPane \\
              -Dtest.src.path=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/javax/swing/JOptionPane:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/open/test/jdk/java/awt/regtesthelpers \\
              -Dtest.classes=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/results/JTwork/classes/javax/swing/JOptionPane/bug4174551.d \\
              -Dtest.class.path=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/results/JTwork/classes/javax/swing/JOptionPane/bug4174551.d:/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/results/JTwork/classes/java/awt/regtesthelpers \\
              -Dtest.modules=java.desktop \\
              --add-modules java.desktop \\
              -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel \\
              -Djava.library.path=/home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/bin-test/jdk/jtreg/native \\
              com.sun.javatest.regtest.agent.MainWrapper /home/thongtt/Desktop/JDK_24_SM_Removal_PIT_Client/results/JTwork/javax/swing/JOptionPane/bug4174551.d/main.0.jta
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reason: font size 24 is not set for message "Hi 24"

      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reason: font size 24 is not set for message "Hi 24"

        1. bug4174551.jtr
          7 kB
          Hau Dinh Le
        2. Font size of message is not set to 24.PNG
          29 kB
          Hau Dinh Le
        3. Font size of message set to 24.png
          35 kB
          Hau Dinh Le

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

              Created:
              Updated:
              Resolved: