From 386a7dcb03b558046260d931d7f41f85f5118f23 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 11 Jan 2017 09:56:55 -0800 Subject: [PATCH] Fix #190: remove printStackTrace from catch block --- .../org/springsource/loaded/ri/ReflectiveInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springloaded/src/main/java/org/springsource/loaded/ri/ReflectiveInterceptor.java b/springloaded/src/main/java/org/springsource/loaded/ri/ReflectiveInterceptor.java index dc06ff1..46a647d 100644 --- a/springloaded/src/main/java/org/springsource/loaded/ri/ReflectiveInterceptor.java +++ b/springloaded/src/main/java/org/springsource/loaded/ri/ReflectiveInterceptor.java @@ -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);