[OpenJDK 2D-Dev] RFR 8149016: Misleading IllegalArgumentException message when a type that is neither LONG nor IFD pointer is supplied to TIFFField constructor

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jul 22 17:50:38 UTC 2016

Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8149016
Patch:	http://cr.openjdk.java.net/~bpb/8149016/webrev.00/

The problem is that the constructor

TIFFField(TIFFTag tag, int type, long offset, TIFFDirectory dir) {}

begins with an invocation of the constructor

TIFFField(TIFFTag tag, int type, int count, Object data) {}

which performs some checks not documented for the former constructor nor for that matter necessary. The fix is to change the former constructor to perform directly the actions for which it was previously relying on the latter constructor.

As an aside, some " ” HTML entities were removed from “{@code}” tags wherein they are not interpreted during javadoc generation.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160722/32c93c8f/attachment.html>

More information about the 2d-dev mailing list