added debug information to class loader

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5508 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 9a4780c165
commit d399444e49

@ -58,6 +58,7 @@ public final class serverClassLoader extends ClassLoader {
// load the file from the file system // load the file from the file system
byte[] b; byte[] b;
try { try {
System.out.println("*** DEBUG CLASSLOADER: " + classfile + "; file " + (classfile.exists() ? "exists": "does not exist"));
b = serverFileUtils.read(classfile); b = serverFileUtils.read(classfile);
// make a class out of the stream // make a class out of the stream
c = this.defineClass(null, b, 0, b.length); c = this.defineClass(null, b, 0, b.length);
@ -66,9 +67,9 @@ public final class serverClassLoader extends ClassLoader {
} catch (final LinkageError ee) { } catch (final LinkageError ee) {
c = findLoadedClass(classname); c = findLoadedClass(classname);
if (c != null) return c; if (c != null) return c;
throw new ClassNotFoundException(classfile.toString()); throw new ClassNotFoundException("linkageError, " + ee.getMessage() + ":" + classfile.toString());
} catch (final IOException ee) { } catch (final IOException ee) {
throw new ClassNotFoundException(classfile.toString()); throw new ClassNotFoundException(ee.getMessage() + ":" + classfile.toString());
} }
return c; return c;
} }

Loading…
Cancel
Save