Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5354

ant: FBTFS due to CMYK JPEG support in OpenJDK

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.3.0
    • ant
    • ant-1.10.9-8.el9
    • None
    • None
    • sst_cs_apps
    • ssg_core_services
    • 17
    • 20
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Hide

      Package builds fine without test failures.
      Gating tests are backported from Fedora.

      Show
      Package builds fine without test failures. Gating tests are backported from Fedora.
    • Pass
    • Enabled
    • RegressionOnly
    • Release Note Not Required
    • None

      Current OpenJDK can load src/etc/testcases/taskdefs/optional/image/src/badimage.jpg the test image because it is treated as a CMYK image (with four bands). As a result, the scaling operation fails at a later point:

      [junit] but: was "Created dir: /builddir/build/BUILD/apache-ant-1.10.9/build/testcases/tmp/testoutput_1805_mainProcessing File: /builddir/build/BUILD/apache-ant-1.10.9/src/etc/testcases/taskdefs/optional/image/src/badimage.jpg Scaling to 44.510384% x 44.510384%java.lang.IllegalArgumentException: Unknown image type 0
      [junit] at org.apache.tools.ant.taskdefs.optional.image.ImageIOTask.processFile(ImageIOTask.java:320)
      [junit] at org.apache.tools.ant.taskdefs.optional.image.ImageIOTask.processDir(ImageIOTask.java:241)
      [junit] at org.apache.tools.ant.taskdefs.optional.image.ImageIOTask.execute(ImageIOTask.java:345)
      [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      [junit] at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      [junit] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            mizdebsk@redhat.com Mikolaj Izdebski
            fweimer@redhat.com Florian Weimer
            Mikolaj Izdebski Mikolaj Izdebski
            Martin Kyral Martin Kyral
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: