From c5ce043ca7015a6e007421dae20dcb781a632d55 Mon Sep 17 00:00:00 2001 From: "Frederick G. Oconer" Date: Fri, 2 Jun 2006 12:48:44 +0000 Subject: [PATCH] fixed compilation error. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@411145 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/activemq/tool/ReflectionUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/ReflectionUtil.java b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/ReflectionUtil.java index a7d83c1ca5..ffce4b4ff0 100644 --- a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/ReflectionUtil.java +++ b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/ReflectionUtil.java @@ -55,7 +55,9 @@ public final class ReflectionUtil { String methodName = "set" + name.substring(0,1).toUpperCase() + name.substring(1); Method method = getPrimitiveMethod(targetClass, methodName, val); - method.invoke(target, val); + Object[] objVal = {val}; + method.invoke(target, objVal); + //method.invoke(target, val); //System.out.println("." + methodName + "(" + val + ")"); } catch (Exception e) { log.warn("", e);