RFR: 4617681: constructor of BufferedImage throws unexpected IllegalArgumentException [v2]
Sergey Bylokhov
serb at openjdk.org
Thu Dec 4 00:58:56 UTC 2025
On Wed, 3 Dec 2025 23:18:39 GMT, Phil Race <prr at openjdk.org> wrote:
>It does not say that something like TYPE_4_BYTE_ABGR absolutely cannot use bands.
>It just points out that if you use a smaller data buffer type you can store less data in a DataBuffer than with a larger one,
But it does not account for the possibility of splitting the image across bands not-by-sample, but-per-parts-of-the image. The DataBuffer specification allows this, but the new specification introduced by this patch documents the internal implementation and blocks that possibility.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27640#discussion_r2587050381
More information about the client-libs-dev
mailing list