From b6be828d15ad92d268c9f388af5eec078aaae6c9 Mon Sep 17 00:00:00 2001 From: theli Date: Fri, 16 Dec 2005 08:39:48 +0000 Subject: [PATCH] *) Bugfix: Share subdirectory couldn't be views because of LinkageErrors See: http://www.yacy-forum.de/viewtopic.php?t=1634 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1218 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/serverClassLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/de/anomic/server/serverClassLoader.java b/source/de/anomic/server/serverClassLoader.java index 6e9948367..f6efceccb 100644 --- a/source/de/anomic/server/serverClassLoader.java +++ b/source/de/anomic/server/serverClassLoader.java @@ -122,6 +122,9 @@ public final class serverClassLoader extends ClassLoader { c = this.defineClass(classname, b, 0, b.length); resolveClass(c); this.classes.put(classfile, c); + } catch (LinkageError ee) { + c = findLoadedClass(classname); + if (c!=null) return c; } catch (IOException ee) { //System.out.println("INTERNAL ERROR2 in cachedClassLoader: " + ee.getMessage()); throw new ClassNotFoundException(classfile.toString());