On Thu, 14 May 2026 22:01:33 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Phil Race has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> 8381007
>
> src/java.desktop/share/classes/java/awt/image/MultiPixelPackedSampleModel.java
> line 173:
>
>> 171: int dataTypeSize = DataBuffer.getDataTypeSize(dataType);
>> 172: if ((((numberOfBits * (long)w) + dataTypeSize - 1) /
>> dataTypeSize) > scanlineStride) {
>> 173: throw new RasterFormatException("scanlineStride is too
>> small for width");
>
> The new spec uses a different code to describe when the RasterFormatException
> is occurred:
>>{@code (numberOfBits * w) / DataBuffer.getDataTypeSize(dataType)} is greater
>>than {@code scanlineStride}
note that this file was formatted mostly 80 chars per row, this change now
added a few long lines, might be good to split the long lines
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30826#discussion_r3244544888