diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-10-04 20:20:39 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-10-04 20:20:39 +0200 |
commit | fc6670e1c4c31fbeaf658369c2771a2a93a0a9ba (patch) | |
tree | b19790797101a0d6980ef7c9a84a2aa20df9d722 /src/core/lombok | |
parent | 5a24e6f9f2caaa154ce862ec51ffc1b56ab4d9d3 (diff) | |
download | lombok-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')
-rw-r--r-- | src/core/lombok/javac/apt/Processor.java | 2 |
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); } |