diff --git a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsClientSystemSupport.java b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsClientSystemSupport.java index 4b5ba54a89..f0577a4245 100644 --- a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsClientSystemSupport.java +++ b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsClientSystemSupport.java @@ -50,7 +50,7 @@ public abstract class JmsClientSystemSupport { performanceSampler.setSamplerSettings(samplerSettings); PerfReportGenerator report = new PerfReportGenerator(); - report.setReportName(this.getClass().getCanonicalName()); + report.setReportName(this.getClass().getName()); report.setTestSettings(getSettings()); report.startGenerateReport(); 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 5e994beba6..2186c8098c 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 @@ -43,12 +43,13 @@ public final class ReflectionUtil { debugInfo = "Invoking: " + targetClass.getName(); StringTokenizer tokenizer = new StringTokenizer(key, "."); + int tokenCount = tokenizer.countTokens(); // NOTE: Skip the first token, it is assume that this is an indicator for the object itself tokenizer.nextToken(); - // For nested settings, get the object first - for (int j=0; j