--- old/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2014-02-20 12:53:19.073935118 -0800 +++ new/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2014-02-20 12:53:18.923935112 -0800 @@ -680,7 +680,7 @@ gotHeader = true; } - public Iterator getImageTypes(int imageIndex) + public Iterator getImageTypes(int imageIndex) throws IOException { checkIndex(imageIndex); try { @@ -688,7 +688,7 @@ } catch (IllegalArgumentException e) { throw new IIOException(I18N.getString("BMPImageReader6"), e); } - ArrayList list = new ArrayList(1); + ArrayList list = new ArrayList<>(1); list.add(new ImageTypeSpecifier(originalColorModel, originalSampleModel)); return list.iterator(); @@ -912,6 +912,7 @@ throw new IIOException(I18N.getString("BMPImageReader1")); } + break; case VERSION_4_8_BIT: switch((int)compression) {