changeset 3427:0099245e979a

8048162: Restrict catch type from Throwable to ReflectiveOperationException Reviewed-by: darcy
author jjg
date Wed, 25 Jun 2014 19:15:53 -0700
parents e0e50718a250
children 0518710873ff
files src/share/classes/com/sun/source/util/Trees.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/source/util/Trees.java	Wed Jun 25 19:04:52 2014 -0700
+++ b/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);
         }
     }