[OpenJDK 2D-Dev]  Review-request for 6353518: Creation of a WritableRaster with a custom DataBuffer causes erroneous Exception
philip.race at oracle.com
Tue Mar 29 22:31:07 UTC 2016
On 03/29/2016 02:37 PM, Jim Graham wrote:
> Raster.java, line 894: Why was the test for dataType removed from this
> if statement?
In a previous version ..
Ajit had added a condition :
890 if (dataType == DataBuffer.TYPE_BYTE &&
891 dataBuffer instanceof DataBufferByte &&
But we don't need both of these.
DataBufferByte should always be DataBuffer.TYPE_BYTE and we do the cast
so it had better be DataBufferByte.
More information about the 2d-dev