Fix #190: remove printStackTrace from catch block

This commit is contained in:
Andy Clement
2017-01-11 09:56:55 -08:00
parent 658a8678a6
commit 386a7dcb03

View File

@@ -650,7 +650,7 @@ public class ReflectiveInterceptor {
*/
private static Field asSetableField(Field field, Object target, Class<?> valueType, Object value,
boolean makeAccessibleCopy)
throws IllegalAccessException {
throws IllegalAccessException {
// Must do the checks exactly in the same order as JVM if we want identical error messages.
// JVM doesn't do this, since it cannot happen without reloading, we do it first of all.
@@ -1054,7 +1054,7 @@ public class ReflectiveInterceptor {
c = jlClassGetDeclaredConstructor(clazz);
}
catch (NoSuchMethodException e) {
e.printStackTrace();
// e.printStackTrace();
throw Exceptions.instantiation(clazz);
}
c = asAccessibleConstructor(c, true);