Fix for https://issues.apache.org/jira/browse/AMQ-4289 activemq-perf-maven-plugin is unusable because of bug in ReflectionUtil helper class

previous commit actually had fix commented out. this has the fix.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1441277 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christian Posta 2013-02-01 00:25:56 +00:00
parent 9a2d3d8613
commit 863f47997e
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ public final class ReflectionUtil {
} else {
try {
Object val = getterMethods[i].invoke(targetObject, null);
// if (val != null && val != targetObject) {
if (val != null ) {
if (val != null && val != targetObject) {
props.putAll(retrieveClassProperties(propertyName + ".", val.getClass(), val));
}
} catch (InvocationTargetException e) {