aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-04-23 23:36:09 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-04-23 23:36:09 +0200
commit0268a9f02075d0aff3099e721a99956dbc715f6e (patch)
tree9701612451f2937ec12f436cda32955126886fb0 /src/core/lombok/eclipse/handlers
parentb5625e5698ae8c584032730aaa332f5198d80245 (diff)
downloadlombok-0268a9f02075d0aff3099e721a99956dbc715f6e.tar.gz
lombok-0268a9f02075d0aff3099e721a99956dbc715f6e.tar.bz2
lombok-0268a9f02075d0aff3099e721a99956dbc715f6e.zip
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.
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index c15c758e..4cf64a14 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -1421,12 +1421,12 @@ public class EclipseHandlerUtil {
Method intLiteralFactoryMethod_ = null;
try {
intLiteralConstructor_ = IntLiteral.class.getConstructor(parameterTypes);
- } catch (Exception ignore) {
+ } catch (Throwable ignore) {
// probably eclipse 3.7++
}
try {
intLiteralFactoryMethod_ = IntLiteral.class.getMethod("buildIntLiteral", parameterTypes);
- } catch (Exception ignore) {
+ } catch (Throwable ignore) {
// probably eclipse versions before 3.7
}
intLiteralConstructor = intLiteralConstructor_;