mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 02:17:12 +00:00
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.
This commit is contained in:
1 parent
5a24e6f9f2
commit
fc6670e1c4
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user