mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +00:00
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:
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)) {
|
||||
|
||||
Reference in new issue
Block a user