On Thu, 20 Aug 2026 17:10:19 GMT, Marius Hanl <[email protected]> wrote:
>> modules/javafx.graphics/src/test/java/test/com/sun/javafx/util/TestImageUtils.java >> line 70: >> >>> 68: // StubToolkit cannot write jpg, we'll test for non-null return >>> value >>> 69: // assertTrue(b.length > 0); >>> 70: assertTrue(b != null); >> >> A `byte[]` can never be null. Good to have tests but I wonder why only jpg / >> jpeg do not work? > > Digging here, `ImageIO.write(bi, format, out);` returns `false` - no > appropriate writer found // yes it can: byte[] b = null; StubToolkit cannot write jpg. The test works with the real toolkit. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2267#discussion_r3823733401
