From fc6670e1c4c31fbeaf658369c2771a2a93a0a9ba Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 4 Oct 2010 20:20:39 +0200 Subject: 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. --- src/core/lombok/javac/apt/Processor.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/lombok') 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); } -- cgit