RFR: 8297676: DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders

Alexander Zvegintsev azvegint at openjdk.org
Sun Nov 27 00:24:56 UTC 2022


On Sat, 26 Nov 2022 02:58:15 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> 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.
> 
> They are used and it is possible to create the ComponentColorModel for each of this transferType. Also, there is a specific data buffer for each: [DataBufferFloat](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferFloat.java#L67), [DataBufferDouble](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferDouble.java#L67), and [DataBufferShort](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/image/DataBufferShort.java#L74).

Marked as reviewed by azvegint (Reviewer).

-------------

PR: https://git.openjdk.org/jdk/pull/11374



More information about the client-libs-dev mailing list