diff options
author | grootjans <grootjans@gmail.com> | 2011-05-17 01:42:02 +0200 |
---|---|---|
committer | grootjans <grootjans@gmail.com> | 2011-05-17 01:42:02 +0200 |
commit | 489f506ba1f9ec99892797a912867322ea7d6478 (patch) | |
tree | 1229e6e98ff479d0b08d51bce18a51f9803ca4c2 /src/core/lombok/eclipse | |
parent | 85f7122ab5841460f5a39dacd47543c0c7bc535c (diff) | |
download | lombok-489f506ba1f9ec99892797a912867322ea7d6478.tar.gz lombok-489f506ba1f9ec99892797a912867322ea7d6478.tar.bz2 lombok-489f506ba1f9ec99892797a912867322ea7d6478.zip |
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.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/TransformEclipseAST.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |