Perf4J

JMX MBeanAttributeInfo object type parameter value is incorrect

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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 :
    0

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.

Activity

Hide
Alex Devine added a comment -

Fixed as recommended, changed class.toString() to class.getName().

Show
Alex Devine added a comment - Fixed as recommended, changed class.toString() to class.getName().

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: