Re: RFR: 8323108: BufferedImage.setData(Raster) should not cast float and double values to integers [v2]

2024-01-20 Thread Sergey Bylokhov
On Sat, 20 Jan 2024 11:46:12 GMT, Martin Desruisseaux wrote: > Updated the copyright years to 2024. The pre-submit tests are failing, but I > believe that it is because the branch is 8 months old. Should I commit a > merge from master? (a test on my local machine suggests that it fixes the > i

Re: RFR: 8323108: BufferedImage.setData(Raster) should not cast float and double values to integers [v2]

2024-01-20 Thread Martin Desruisseaux
On Sat, 20 Jan 2024 10:43:49 GMT, Martin Desruisseaux wrote: >> The `BufferedImage` Javadoc does not mention any constraint about the data >> type. In practice, `BufferedImage` with floating point values can be >> rendered by Java2D as well as integers, provided that a compatible >> `ColorMode

Re: RFR: 8323108: BufferedImage.setData(Raster) should not cast float and double values to integers [v2]

2024-01-20 Thread Martin Desruisseaux
> The `BufferedImage` Javadoc does not mention any constraint about the data > type. In practice, `BufferedImage` with floating point values can be rendered > by Java2D as well as integers, provided that a compatible `ColorModel` was > supplied at construction time. However calls to `setData(Ras