activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cepo...@apache.org
Subject svn commit: r1441277 - /activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
Date Fri, 01 Feb 2013 00:25:56 GMT
Author: ceposta
Date: Fri Feb  1 00:25:56 2013
New Revision: 1441277

URL: http://svn.apache.org/viewvc?rev=1441277&view=rev
Log:
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.

Modified:
    activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java

Modified: activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java?rev=1441277&r1=1441276&r2=1441277&view=diff
==============================================================================
--- activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
(original)
+++ activemq/trunk/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
Fri Feb  1 00:25:56 2013
@@ -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) {



Mime
View raw message