8048162: Restrict catch type from Throwable to ReflectiveOperationException
Reviewed-by: darcy
--- 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);
}
}