aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-10-04 20:20:39 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-10-04 20:20:39 +0200
commitfc6670e1c4c31fbeaf658369c2771a2a93a0a9ba (patch)
treeb19790797101a0d6980ef7c9a84a2aa20df9d722 /src/core/lombok/javac
parent5a24e6f9f2caaa154ce862ec51ffc1b56ab4d9d3 (diff)
downloadlombok-fc6670e1c4c31fbeaf658369c2771a2a93a0a9ba.tar.gz
lombok-fc6670e1c4c31fbeaf658369c2771a2a93a0a9ba.tar.bz2
lombok-fc6670e1c4c31fbeaf658369c2771a2a93a0a9ba.zip
The previous commit (fix for ZIP closed errors) actually breaks lombok on systems with a javac that _does not_ close the annotation processor's jar. Fixed that, too.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/apt/Processor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/apt/Processor.java b/src/core/lombok/javac/apt/Processor.java
index 1d3d0c34..037f5ba5 100644
--- a/src/core/lombok/javac/apt/Processor.java
+++ b/src/core/lombok/javac/apt/Processor.java
@@ -157,6 +157,8 @@ public class Processor extends AbstractProcessor {
ClassLoader unwrapped = (ClassLoader) f.get(processingEnv);
ClassLoader wrapped = new WrappingClassLoader(unwrapped);
f.set(processingEnv, wrapped);
+ } catch (NoSuchFieldException e) {
+ // Some versions of javac have this (and call close on it), some don't. I guess this one doesn't have it.
} catch (Throwable t) {
throw Lombok.sneakyThrow(t);
}