diff -r fd976b9703f1 -r 4711f66e7d5c jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java --- a/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java Fri Feb 21 10:03:49 2014 -0800 +++ b/jdk/src/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java Fri Feb 21 15:28:37 2014 -0800 @@ -1204,9 +1204,9 @@ private void writeApplicationExtension(GIFWritableImageMetadata im) throws IOException { if (im.applicationIDs != null) { - Iterator iterIDs = im.applicationIDs.iterator(); - Iterator iterCodes = im.authenticationCodes.iterator(); - Iterator iterData = im.applicationData.iterator(); + Iterator iterIDs = im.applicationIDs.iterator(); + Iterator iterCodes = im.authenticationCodes.iterator(); + Iterator iterData = im.applicationData.iterator(); while (iterIDs.hasNext()) { try { @@ -1214,10 +1214,10 @@ stream.write(0xff); stream.write(11); - stream.write((byte[])iterIDs.next(), 0, 8); - stream.write((byte[])iterCodes.next(), 0, 3); + stream.write(iterIDs.next(), 0, 8); + stream.write(iterCodes.next(), 0, 3); - writeBlocks((byte[])iterData.next()); + writeBlocks(iterData.next()); stream.write(0x00); } catch (IOException e) { @@ -1231,11 +1231,11 @@ throws IOException { if (im.comments != null) { try { - Iterator iter = im.comments.iterator(); + Iterator iter = im.comments.iterator(); while (iter.hasNext()) { stream.write(0x21); stream.write(0xfe); - writeBlocks((byte[])iter.next()); + writeBlocks(iter.next()); stream.write(0x00); } } catch (IOException e) {