From 0ae11ce404c8ed583c4e4cf217fca4f101fbb078 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 26 Sep 2009 09:00:39 +0200 Subject: 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. --- src/lombok/eclipse/TransformEclipseAST.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lombok/eclipse') 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; -- cgit