If there are severe load errors, then an attempt to just log that fails and causes eclipse to break down; now it should just log to standard error and at least let eclipse continue running, sans lombok, if the logging to the eclipse log of the failure also fails.

This commit is contained in:
Reinier Zwitserloot
2009-09-26 09:00:39 +02:00
parent 35691e83ed
commit 0ae11ce404
+6 -1
View File
@@ -65,7 +65,12 @@ public class TransformEclipseAST {
l = HandlerLibrary.load();
f = CompilationUnitDeclaration.class.getDeclaredField("$lombokAST");
} catch ( Throwable t ) {
Eclipse.error(null, "Problem initializing lombok", t);
try {
Eclipse.error(null, "Problem initializing lombok", t);
} catch ( Throwable t2) {
System.err.println("Problem initializing lombok");
t.printStackTrace();
}
disableLombok = true;
}
astCacheField = f;