-
Bug
-
Resolution: Fixed
-
P4
-
17, 20
-
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.
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.
- csr for
-
JDK-8297677 DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders
-
- Closed
-