https://issues.apache.org/jira/browse/AMQ-4428 - patch applied with thanks - errors are now logged and throwables propagate

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1479852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2013-05-07 10:51:40 +00:00
parent 436f892c16
commit 864fdbebef

View File

@ -85,7 +85,7 @@ public final class IntrospectionSupport {
props.put(optionPrefix + name, strValue); props.put(optionPrefix + name, strValue);
rc = true; rc = true;
} catch (Throwable ignore) { } catch (Exception ignore) {
} }
} }
} }
@ -178,7 +178,8 @@ public final class IntrospectionSupport {
setter.invoke(target, convert(value, setter.getParameterTypes()[0])); setter.invoke(target, convert(value, setter.getParameterTypes()[0]));
} }
return true; return true;
} catch (Throwable ignore) { } catch (Exception e) {
LOG.error(String.format("Could not set property %s on %s", name, target), e);
return false; return false;
} }
} }
@ -345,11 +346,11 @@ public final class IntrospectionSupport {
if (o != null && o.getClass().isArray()) { if (o != null && o.getClass().isArray()) {
try { try {
o = Arrays.asList((Object[])o); o = Arrays.asList((Object[])o);
} catch (Throwable e) { } catch (Exception e) {
} }
} }
map.put(field.getName(), o); map.put(field.getName(), o);
} catch (Throwable e) { } catch (Exception e) {
LOG.debug("Error getting field " + field + " on class " + startClass + ". This exception is ignored.", e); LOG.debug("Error getting field " + field + " on class " + startClass + ". This exception is ignored.", e);
} }
} }