From 0268a9f02075d0aff3099e721a99956dbc715f6e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 23 Apr 2012 23:36:09 +0200 Subject: Replaced the 'try some reflection and if that fails, oh well' code with catch(Throwable) instead of catch(Exception). The whole point is to default to an alternative path is anything goes wrong, and it turns out there are various ways to get Throwables instead of Exceptions. --- src/core/lombok/javac/JavacResolution.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/lombok/javac') diff --git a/src/core/lombok/javac/JavacResolution.java b/src/core/lombok/javac/JavacResolution.java index 4e988183..6da60907 100644 --- a/src/core/lombok/javac/JavacResolution.java +++ b/src/core/lombok/javac/JavacResolution.java @@ -105,7 +105,7 @@ public class JavacResolution { d.setAccessible(true); e.setAccessible(true); f.setAccessible(true); - } catch (Exception x) { + } catch (Throwable x) { z = true; } @@ -114,7 +114,7 @@ public class JavacResolution { h = Log.class.getDeclaredField("deferredDiagnostics"); g.setAccessible(true); h.setAccessible(true); - } catch (Exception x) { + } catch (Throwable x) { } errWriterField = a; -- cgit