[OpenJDK 2D-Dev] RFR: 8144245: [PIT] javax/imageio/plugins/shared/WriteAfterAbort.java
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Dec 4 22:27:26 UTC 2015
Please review at your convenience.
Issue: https://bugs.openjdk.java.net/browse/JDK-8144245
Patch: http://cr.openjdk.java.net/~bpb/8144245/webrev.00/
For the principal issue, the stream position was not being reset when the write was aborted to either the header position or to the position of the current IFD, as appropriate. As part of the investigation, a missing check in TIFFIFD was discovered. Also, a few occurrences in TIFFImageWriter of a NullPointerException being thrown where an IllegalArgumentException was expected were corrected. Lastly, the test was slightly modified to iterate over all registered writers and fail at the end instead of bailing out on the first failure.
Thanks,
Brian
More information about the 2d-dev
mailing list