Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Java 9 issues Date: Tue, 3 Oct 2017 19:45:17 -0400 Organization: Aioe.org NNTP Server Lines: 25 Message-ID: References: <3932fb50-27ec-475c-9e74-45387ba59ac1@googlegroups.com> <3648a011-9931-4696-ab90-25a3009095bb@googlegroups.com> <8ec36671-ecc3-48f0-908e-3fd4884761eb@googlegroups.com> <4656bf2d-d22d-46d1-bf82-970c1075a1ba@googlegroups.com> NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:37550 On 10/3/2017 4:38 PM, Eric Douglas wrote: > On Tuesday, October 3, 2017 at 4:27:58 PM UTC-4, Patrick Roemer wrote: >> javax.imageio is part of the JDK, supports I/O for some image formats >> and exposes a plugin/SPI mechanism for additional format providers. >> jai-imageio is such a 3rd party provider supporting additional image >> formats. javax.imageio has added core support for some of those formats >> since, other formats still require 3rd party plugins like jai-imageio. >> >> The bug is in jai-imageio and occurs during service registration, i.e. >> it will be triggered even if you never use these additional formats - >> just having the jar on the path suffices. The "fix" in javax.imageio >> just assumes that all exceptions (and errors) occurring during this >> phase are harmless and can be "handled" by logging. > > I tested a jpg and a png no problems without the extra jar, not sure > what format we may have initially included the jar for. So I'll need > to find the list of formats supported by javax.imageio and a list > that still require jai. https://docs.oracle.com/javase/9/docs/api/javax/imageio/ImageIO.html#getReaderFormatNames-- https://docs.oracle.com/javase/9/docs/api/javax/imageio/ImageIO.html#getWriterFormatNames-- may be able to help. Arne