A shot-in-the-dark fix for issue #1293 which is not reproducible: Occasional duplicate class def errors in eclipse.

This commit is contained in:
Reinier Zwitserloot committed 2017-02-09 22:46:21 +01:00
1 parent ca2966f735
commit b42fef8edc
1 file changed
+6 -1
@@ -451,7 +451,12 @@ class ShadowClassLoader extends ClassLoader {
Class<?> alreadyDefined = highlanderMap.get(name);
if (alreadyDefined != null) return alreadyDefined;
}
throw e;
try {
c = this.findLoadedClass(name);
} catch (LinkageError e2) {
throw e;
}
if (c == null) throw e;
}
if (highlanders.contains(name)) {