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

java/awt/print/PrinterJob/PrintNullString.java failed: FAILURE: No IAE for empty iterator, int

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7, 8, 11, 17, 21, 22, 23
    • client-libs
    • 2d
    • generic

      The java/awt/print/PrinterJob/PrintNullString.java test fails, the window displays:

      FAILURE: No IAE for empty iterator, int
      FAILURE: No IAE for empty iterator, float

      When printed, there are no failures displayed.

      ---

      OS:
      Ubuntu Linux

      Environments:
      Operating System: Ubuntu 24.04 LTS
      Language: English
      Processor: Intel® Xeon® Silver 4210 × 8
      OS type: 64-bit
      Memory: 8 GB

      Failed on Release/Build: JDK_23_b22
      Is it a Regression in JDK 23 release: N/A
      [If Regression] Regression introduced in JDK 23 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. Not tested on macOS and Windows yet.

      Steps to reproduce:

              Step 1. Open terminal and run command:

      #!/bin/sh -x
      export JAVA_HOME=/home/ubuntu/Desktop/Reg/jdk-23
      export JT_HOME=/home/ubuntu/Desktop/Reg/jtreg
      export PATH=$PATH:$JAVA_HOME/bin:$JT_HOME/bin

      jtreg \
      -ignore:quiet \
      -ea \
      -esa \
      -m \
      -gui \
      -e:SWINGSET2_JAR=file:///home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/jdk/demos/jfc/SwingSet2/SwingSet2.jar \
      -nativepath:/home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/jdk/jtreg/native \
      -exclude:/home/ubuntu/Desktop/Reg/open/test/jdk/ProblemList.txt \
      -testjdk:/home/ubuntu/Desktop/Reg/jdk-23 \
      -dir:/home/ubuntu/Desktop/Reg/open/test/jdk \
      -reportDir:results/JTreport \
      -workDir:results/JTwork \
      -timeoutHandlerDir:/home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/failure_handler/jtregFailureHandler.jar \
      -observerDir:/home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/failure_handler/jtregFailureHandler.jar \
      -timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \
      -observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
      -timeoutHandlerTimeout:0 \
      /home/ubuntu/Desktop/Reg/open/test/jdk/:jdk_desktop

                 Step 2. Run test case: java/awt/print/PrinterJob/PrintNullString.java
                 Step 3. Click on print button
                 Step 4. Observe the physical copy

      Expected behavior:
      The physical copy is the same as the test window on the screen

      Actual behavior:
      The physical copy is NOT the same as the test window on the screen

      Any non-default VM flags
      /home/ubuntu/Desktop/Reg/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=/home/ubuntu/Desktop/Reg/jdk-23 \\
              -Dcompile.jdk=/home/ubuntu/Desktop/Reg/jdk-23 \\
              -Dtest.timeout.factor=1.0 \\
              -Dtest.nativepath=/home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/jdk/jtreg/native \\
              -Dtest.root=/home/ubuntu/Desktop/Reg/open/test/jdk \\
              -Dtest.name=java/awt/print/PrinterJob/PrintNullString.java \\
              -Dtest.file=/home/ubuntu/Desktop/Reg/open/test/jdk/java/awt/print/PrinterJob/PrintNullString.java \\
              -Dtest.src=/home/ubuntu/Desktop/Reg/open/test/jdk/java/awt/print/PrinterJob \\
              -Dtest.src.path=/home/ubuntu/Desktop/Reg/open/test/jdk/java/awt/print/PrinterJob:/home/ubuntu/Desktop/Reg/open/test/jdk/java/awt/regtesthelpers \\
              -Dtest.classes=/home/ubuntu/Desktop/Reg/results/JTwork/classes/java/awt/print/PrinterJob/PrintNullString.d \\
              -Dtest.class.path=/home/ubuntu/Desktop/Reg/results/JTwork/classes/java/awt/print/PrinterJob/PrintNullString.d:/home/ubuntu/Desktop/Reg/results/JTwork/classes/java/awt/regtesthelpers \\
              -Dtest.modules=java.desktop \\
              --add-modules java.desktop \\
              -ea \\
              -esa \\
              -Djava.library.path=/home/ubuntu/Desktop/Reg/jdk-23-ea+22_linux-x64_bin-tests/jdk/jtreg/native \\
              com.sun.javatest.regtest.agent.MainWrapper /home/ubuntu/Desktop/Reg/results/JTwork/java/awt/print/PrinterJob/PrintNullString.d/main.0.jta

        1. PrintNullString.jtr
          7 kB
          Trieu Quoc Nguyen
        2. PrintNullString.png
          261 kB
          Trieu Quoc Nguyen

            rkannathpari Renjith Kannath Pariyangad
            imttrieunq Trieu Quoc Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: