From 489f506ba1f9ec99892797a912867322ea7d6478 Mon Sep 17 00:00:00 2001 From: grootjans Date: Tue, 17 May 2011 01:42:02 +0200 Subject: Added a layer of indirection between the patched calls for delegate to guard against situations in which lombok can't possibly work, since there is not enough of eclipse on the classpath. Major example of this is when we are called through jsps in the eclipse help. Also added an extra check before the patchval is performed by checking if previous patch calls failed in TransformEclipseAST. This fixes Issue #207. --- src/core/lombok/eclipse/TransformEclipseAST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok/eclipse') diff --git a/src/core/lombok/eclipse/TransformEclipseAST.java b/src/core/lombok/eclipse/TransformEclipseAST.java index 443969f8..aada3ca4 100644 --- a/src/core/lombok/eclipse/TransformEclipseAST.java +++ b/src/core/lombok/eclipse/TransformEclipseAST.java @@ -53,7 +53,7 @@ public class TransformEclipseAST { private static final Field astCacheField; private static final HandlerLibrary handlers; - private static boolean disableLombok = false; + public static boolean disableLombok = false; static { Field f = null; -- cgit