Hi, Phil
Probably it will be simpler to change the code in
IIORegistry.registerApplicationClasspathSpis?
} catch (ServiceConfigurationError err) {
if (System.getSecurityManager() != null) {
// In the applet case, we will catch the error so
// registration of other plugins can proceed
err.printStackTrace();
} else {
// In the application case, we will throw the
// error to indicate app/system misconfiguration
throw err;
}
}
We can change ServiceConfigurationError to Throwable + stacktrace.
On 20.05.16 23:07, Phil Race wrote:
Please review the following workaround for :-
https://bugs.openjdk.java.net/browse/JDK-8154860
-phil.
--- a/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
+++ b/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
@@ -770,7 +770,12 @@
poset.add(provider);
if (provider instanceof RegisterableService) {
RegisterableService rs = (RegisterableService)provider;
+ try {
rs.onRegistration(registry, category);
+ } catch (Throwable t) {
+ System.err.println("Caught and handled this exception :");
+ t.printStackTrace();
+ }
}
return !present;
--
Best regards, Sergey.