Added debug print, if reader not instantiatable.

This commit is contained in:
Harald Kuhr 2009-10-16 17:51:13 +02:00
parent 3314710867
commit 850fba6d6c

View File

@ -154,9 +154,11 @@ public class SVGImageReaderSpi extends ImageReaderSpi {
public void onRegistration(ServiceRegistry registry, Class<?> category) { public void onRegistration(ServiceRegistry registry, Class<?> category) {
if (!SVG_READER_AVAILABLE) { if (!SVG_READER_AVAILABLE) {
try { try {
// NOTE: This will break, but it gives us some useful debug info
new SVGImageReader(this); new SVGImageReader(this);
} }
catch (Throwable t) { catch (Throwable t) {
System.err.println("Could not instantiate SVGImageReader (missing support classes).");
t.printStackTrace(); t.printStackTrace();
} }