8048162: Restrict catch type from Throwable to ReflectiveOperationException
authorjjg
Wed, 25 Jun 2014 19:15:53 -0700
changeset 25288 5234a53b53a8
parent 25287 d2440361b323
child 25289 9573116c764c
8048162: Restrict catch type from Throwable to ReflectiveOperationException Reviewed-by: darcy
langtools/src/share/classes/com/sun/source/util/Trees.java
--- a/langtools/src/share/classes/com/sun/source/util/Trees.java	Wed Jun 25 19:04:52 2014 -0700
+++ b/langtools/src/share/classes/com/sun/source/util/Trees.java	Wed Jun 25 19:15:53 2014 -0700
@@ -86,7 +86,7 @@
             argType = Class.forName(argType.getName(), false, cl);
             Method m = c.getMethod("instance", argType);
             return (Trees) m.invoke(null, arg);
-        } catch (Throwable e) {
+        } catch (ReflectiveOperationException e) {
             throw new AssertionError(e);
         }
     }