hg: jdk9/client/jdk: 8152966: ClassCastException when adding IFD to the TIFFDirectory before the image write

brian.burkhalter at oracle.com brian.burkhalter at oracle.com
Fri Aug 12 21:52:09 UTC 2016


Changeset: 6a66fb22095a
Author:    bpb
Date:      2016-08-12 14:35 -0700
URL:       http://hg.openjdk.java.net/jdk9/client/jdk/rev/6a66fb22095a

8152966: ClassCastException when adding IFD to the TIFFDirectory before the image write
Summary: Move the private method getDirectoryAsIFD(TIFFDirectory) from the API class TIFFDirectory to a public method in the internal class TIFFIFD and replace all casts of TIFFDirectory to TIFFIFD with its invocation
Reviewed-by: prr

! src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFIFD.java
! src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFImageMetadata.java
! src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFImageWriter.java
! src/java.desktop/share/classes/javax/imageio/plugins/tiff/TIFFDirectory.java
+ test/javax/imageio/plugins/tiff/IFDTest.java



More information about the jdk9-client-changes mailing list