RFR: 8262297: ImageIO.write() method will throw IndexOutOfBoundsException [v4]

Jayathirth D V jdv at openjdk.java.net
Tue Nov 23 11:34:10 UTC 2021


On Tue, 23 Nov 2021 11:14:09 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

>> Masanori Yano has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException
>>  - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException
>
> test/jdk/javax/imageio/plugins/bmp/BMPBitsPerPixelTest.java line 62:
> 
>> 60:             }
>> 61:             BufferedImage img = new BufferedImage(10, 10, imageType, (IndexColorModel)cm);
>> 62:             ImageIO.write(img, "BMP", new File("test.bmp"));
> 
> Just noticed before sponsoring that this test will leave test.bmp file.
> We should create temporary file and delete it on exit.

I am withdrawing my approval, since this needs to be fixed.

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

PR: https://git.openjdk.java.net/jdk/pull/6151



More information about the client-libs-dev mailing list