> Specifying the behaviour of BufferedImage constructors for invalid dimensions > is long overdue. > > The behaviour for image types and sizes <= 0 is unchanged by this PR. > Also in many cases the behaviour for sizes that are too large is also > unchanged. > In some cases, the behaviour is changed from "accidental" > NegativeArraySizeException to a consistent IllegalArgumentException. > > In no case is anything changed that would affect the possibility to construct > a BufferedImage. > > A test is provided to ensure the behaviour. > > A CSR is provided too : https://bugs.openjdk.org/browse/JDK-8369155 > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Phil Race has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision: - 4617681 - Merge remote-tracking branch 'upstream/master' into bimg Merge master - 4617681 - 4617681 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27640/files - new: https://git.openjdk.org/jdk/pull/27640/files/7fb58b90..7d79baf6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27640&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27640&range=01-02 Stats: 2050600 lines in 16635 files changed: 1210799 ins; 671524 del; 168277 mod Patch: https://git.openjdk.org/jdk/pull/27640.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27640/head:pull/27640 PR: https://git.openjdk.org/jdk/pull/27640
