On Fri, 20 Nov 2026 20:59:52 GMT, Phil Race <[email protected]> wrote:
>> Timofei Fedotov has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Restore default switch branches
>
> src/java.desktop/share/classes/sun/awt/image/ImagingLib.java line 80:
>
>> 78: double[] matrix,
>> 79: int interpType);
>> 80: public static native int convolveBINative(BufferedImage src,
>> BufferedImage dst,
>
> I think convolveBINative(..) can now be private, as it is used only from
> within this class.
> Same for the raster one.
Done.
> src/java.desktop/share/classes/sun/awt/image/ImagingLib.java line 106:
>
>> 104:
>> 105: if (width <= 0 || height <= 0 ||
>> 106: (long) width * height != data.length) {
>
> You go to the trouble of checking in native whether data is null .. yet
> you've already de-referenced it here.
Done.
> src/java.desktop/share/classes/sun/awt/image/ImagingLib.java line 212:
>
>> 210: case CONVOLVE_OP:
>> 211: ConvolveOp cOp = (ConvolveOp) op;
>> 212: if (convolveRaster(src, dst, cOp.getKernel(),
>
> not sure why you made this cosmetic change
Back old change.
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c line 311:
>
>> 309: return 0;
>> 310: }
>> 311:
>
> so now there's no problem on the java side, why did you keep these ? My point
> was (and is) that we now know they are already validated by the caller.
Done.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33887#discussion_r4662283697
PR Review Comment: https://git.openjdk.org/jdk/pull/33887#discussion_r4662282559
PR Review Comment: https://git.openjdk.org/jdk/pull/33887#discussion_r4662298979
PR Review Comment: https://git.openjdk.org/jdk/pull/33887#discussion_r4662282986