mirror of https://github.com/apache/activemq.git
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:
parent
436f892c16
commit
864fdbebef
|
@ -85,7 +85,7 @@ public final class IntrospectionSupport {
|
|||
props.put(optionPrefix + name, strValue);
|
||||
rc = true;
|
||||
|
||||
} catch (Throwable ignore) {
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +178,8 @@ public final class IntrospectionSupport {
|
|||
setter.invoke(target, convert(value, setter.getParameterTypes()[0]));
|
||||
}
|
||||
return true;
|
||||
} catch (Throwable ignore) {
|
||||
} catch (Exception e) {
|
||||
LOG.error(String.format("Could not set property %s on %s", name, target), e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -345,11 +346,11 @@ public final class IntrospectionSupport {
|
|||
if (o != null && o.getClass().isArray()) {
|
||||
try {
|
||||
o = Arrays.asList((Object[])o);
|
||||
} catch (Throwable e) {
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue