aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-09-26 09:00:39 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-09-26 09:00:39 +0200
commit0ae11ce404c8ed583c4e4cf217fca4f101fbb078 (patch)
tree3dec24cf8ffd7a4f6170b440dc62e3b2a0176fef
parent35691e83edffdadd5ef438793eec9c968e8bfd35 (diff)
downloadlombok-0ae11ce404c8ed583c4e4cf217fca4f101fbb078.tar.gz
lombok-0ae11ce404c8ed583c4e4cf217fca4f101fbb078.tar.bz2
lombok-0ae11ce404c8ed583c4e4cf217fca4f101fbb078.zip
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.
-rw-r--r--src/lombok/eclipse/TransformEclipseAST.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lombok/eclipse/TransformEclipseAST.java b/src/lombok/eclipse/TransformEclipseAST.java
index 365b65a2..3caddb18 100644
--- a/src/lombok/eclipse/TransformEclipseAST.java
+++ b/src/lombok/eclipse/TransformEclipseAST.java
@@ -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;