Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.10
-
Fix Version/s: 0.9.12
-
Component/s: Perf4J base
-
Labels:None
-
Environment:Windows XP, Java 6
-
Patch Submitted:Yes
-
Number of attachments :
Description
In org.perf4j.helpers.StatisticsExposingMBean class, the MBeanAttributeInfo constructor the type parameter should be "statsValueRetriever.getValueClass().getName()" instead "statsValueRetriever.getValueClass().toString()" (Line 255 in StatisticsExposingMBean).
The Class.toString() call adds "class " to string created. For example, returned string is "class java.lang.Double" instead of "java.lang.Double".
Instead if "Class.getName()" method is used, then the string contains only the class type.
Fixed as recommended, changed class.toString() to class.getName().