Integrated: 8306320: BufferedImage spec needs clarification w.r.t its implementation of the WritableRenderedImage interface

Martin Desruisseaux duke at openjdk.org
Wed May 3 20:49:30 UTC 2023


On Tue, 18 Apr 2023 09:30:07 GMT, Martin Desruisseaux <duke at openjdk.org> wrote:

> `BufferedImage` implements the `WritableRenderedImage` interface. But the Javadoc is copied from `WritableRenderedImage`, while `BufferedImage` does something quite different. In particular, `TileObserver` are ignored. This pull request add `@implSlec` for explaining the default behaviour.
> 
> This commit has one specification change in `isTileWritable`: the exception type is changed from `ArrayIndexOutOfBoundsException` to `IllegalArgumentException` for matching the implementation. The logical conditions is also corrected.
> 
> This commit contains a trivial code change: `new Point(0,0)` is replaced by `new Point()` for saving a few byte codes.

This pull request has now been integrated.

Changeset: dcb2f3f5
Author:    Martin Desruisseaux <martin.desruisseaux at geomatys.com>
Committer: Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dcb2f3f5029ebdb2bb088ad10bed2134aa71cf1a
Stats:     39 lines in 1 file changed: 36 ins; 0 del; 3 mod

8306320: BufferedImage spec needs clarification w.r.t its implementation of the WritableRenderedImage interface

Reviewed-by: prr

-------------

PR: https://git.openjdk.org/jdk/pull/13506



More information about the client-libs-dev mailing list