RFR: 8306707: Support pluggable image loading via javax.imageio

Michael Strauß mstrauss at openjdk.org
Wed Oct 16 14:21:18 UTC 2024


On Tue, 15 Oct 2024 20:26:29 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> With the restructuring to make the dependency optional at runtime, this seems like a reasonable approach to consider. I also want to make sure that we don't initialize the AWT toolkit unless an application tries to load an image file of a format that JavaFX doesn't support. It will take some time to review and test it.

Independent of whether loading `ImageIO` will initialize AWT, I've modified the code such that `ImageIO` will only ever be loaded if we encounter an image format that JavaFX can't load.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1593#issuecomment-2416986066


More information about the openjfx-dev mailing list