RFR: 8262297: ImageIO.write() method will throw IndexOutOfBoundsException [v4]
Masanori Yano
myano at openjdk.java.net
Wed Nov 24 11:09:45 UTC 2021
On Tue, 23 Nov 2021 11:30:40 GMT, Jayathirth D V <jdv at openjdk.org> wrote:
>> 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.
I fixed it to use createTempFile and deleteOnExit.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6151
More information about the client-libs-dev
mailing list