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

DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 17, 20
    • client-libs
    • 2d
    • b26
    • generic
    • generic

    Description

      The specification for the DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE mentioned that all of them are "Placeholder for future use" which is not true, see:
      https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/image/DataBuffer.html#TYPE_DOUBLE
      https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/image/DataBuffer.html#TYPE_FLOAT
      https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/image/DataBuffer.html#TYPE_SHORT

      They are used and it is possible to create the ComponentColorModel for each of these transferType. Also, there is a specific data buffer for each: DataBufferFloat, DataBufferDouble, and DataBufferShort.

      Attachments

        Issue Links

          Activity

            People

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: