ImageIO.java (ReaderFormatFilter.filter): Fixed wrong casting.

2005-04-11  Michael Koch  <konqueror@gmx.de>

        * javax/imageio/ImageIO.java (ReaderFormatFilter.filter):
        Fixed wrong casting.

From-SVN: r98031
This commit is contained in:
Michael Koch 2005-04-12 18:38:31 +00:00 committed by Anthony Green
parent d7b4b07a23
commit e6ed5cff83
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-11 Michael Koch <konqueror@gmx.de>
* javax/imageio/ImageIO.java (ReaderFormatFilter.filter):
Fixed wrong casting.
2005-04-06 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/bytearray.java: New file.

View File

@ -80,7 +80,7 @@ public final class ImageIO
{
if (provider instanceof ImageReaderSpi)
{
ImageWriterSpi spi = (ImageWriterSpi) provider;
ImageReaderSpi spi = (ImageReaderSpi) provider;
String[] formatNames = spi.getFormatNames();
for (int i = formatNames.length - 1; i >= 0; --i)