On Sat, 26 Nov 2022 02:58:15 GMT, Sergey Bylokhov <[email protected]> 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). This pull request has now been integrated. Changeset: 37f613ba Author: Sergey Bylokhov <[email protected]> URL: https://git.openjdk.org/jdk/commit/37f613bad3b01b40d518de34630e1e6d63737a4c Stats: 10 lines in 1 file changed: 2 ins; 2 del; 6 mod 8297676: DataBuffer.TYPE_SHORT/TYPE_FLOAT/TYPE_DOUBLE are not placeholders Reviewed-by: azvegint, prr ------------- PR: https://git.openjdk.org/jdk/pull/11374
