Path: csiph.com!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.xdsl-89-0-205-101.netcologne.de!not-for-mail From: Patrick Roemer Newsgroups: comp.lang.java.programmer Subject: Re: Java 9 issues Date: Tue, 3 Oct 2017 20:20:04 +0200 Organization: news.netcologne.de Distribution: world Message-ID: References: <3932fb50-27ec-475c-9e74-45387ba59ac1@googlegroups.com> <3648a011-9931-4696-ab90-25a3009095bb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 3 Oct 2017 18:20:04 +0000 (UTC) Injection-Info: newsreader4.netcologne.de; posting-host="xdsl-89-0-205-101.netcologne.de:89.0.205.101"; logging-data="14178"; mail-complaints-to="abuse@netcologne.de" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.24) Gecko/20100411 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:37535 Responding to Arne Vajhøj: >>> http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/25066225d892 >>> >>> the fix seems to have been to change: >>> >>> rs.onRegistration(registry, category); >>> >>> to: >>> >>> try { >>> rs.onRegistration(registry, category); >>> } catch (Throwable t) { >>> System.err.println("Caught and handled this exception"); >>> t.printStackTrace(); >>> } >>> >>> WTF???? >> >> Exactly. All I saw in Patrick's link was this 'fix' that prints >> stack traces. Can I get a jar that gets rid of the error and the >> messages? > > OpenJDK : edit, compiler, update jar > > Oracle JDK : submit a new bug report (you could get in license problems > by modifying rt.jar I believe) The actual bug is in the jai-imageio version parsing. The "fix" on the JDK side is just a generic, rather makeshift and somewhat risky measure of self-defence against buggy plugins. Best regards, Patrick