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

writing images using ImageIO fails for images based on DataBufferFloat

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Linux tichy 5.15.0-73-generic #80~20.04.1-Ubuntu SMP Wed May 17 14:58:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      When trying to write a BufferedImage to an output file that has a structure internally that uses DataBufferFloat ro represent the data, this fails silently: no exception, no error message - nothing. And yet, the size of the result file is 0 bytes long.
      However, the images in themselves are sound for one can use them for example as ImageIcons on Swing JLabels.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Check out <link> and invoke 'mvn test'

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      unit tests should succeed, a result file is written - containing image data
      ACTUAL -
      The two tests based on BufferedImages having DataBufferFloat fail

      ---------- BEGIN SOURCE ----------
       <link>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      see the two working tests in <link>

      FREQUENCY : always


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: