DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 17, 20
    • Component/s: client-libs
    • 2d
    • b26
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: