Skip to content

Commit

Permalink
added debug information to class loader
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5508 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jan 21, 2009
1 parent 9a4780c commit d399444
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/de/anomic/server/serverClassLoader.java
Expand Up @@ -58,6 +58,7 @@ public Class<?> loadClass(final File classfile) throws ClassNotFoundException {
// load the file from the file system
byte[] b;
try {
System.out.println("*** DEBUG CLASSLOADER: " + classfile + "; file " + (classfile.exists() ? "exists": "does not exist"));
b = serverFileUtils.read(classfile);
// make a class out of the stream
c = this.defineClass(null, b, 0, b.length);
Expand All @@ -66,9 +67,9 @@ public Class<?> loadClass(final File classfile) throws ClassNotFoundException {
} catch (final LinkageError ee) {
c = findLoadedClass(classname);
if (c != null) return c;
throw new ClassNotFoundException(classfile.toString());
throw new ClassNotFoundException("linkageError, " + ee.getMessage() + ":" + classfile.toString());
} catch (final IOException ee) {
throw new ClassNotFoundException(classfile.toString());
throw new ClassNotFoundException(ee.getMessage() + ":" + classfile.toString());
}
return c;
}
Expand Down

0 comments on commit d399444

Please sign in to comment.