NanoContainer
  1. NanoContainer
  2. NANO-114

JMXVisitor throws ClassCastException if key is not a String or Class

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-4
    • Fix Version/s: 1.0-beta-5
    • Component/s: jmx
    • Labels:
      None
    • Number of attachments :
      2

      Description

      The JMXVisitor implementation makes an explicit assumption about the registered key to be either a Class type or aString in method componentKeyAsString. If the key is not a Class it sould get the string representation from the key instead casting it.

      1. JMXVisitor.java
        6 kB
        John Conlon
      2. JMXVisitorTestCase.java
        4 kB
        John Conlon

        Activity

        Jörg Schaible made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 1.0-beta-5 [ 11369 ]
        Status Open [ 1 ] Closed [ 6 ]
        Hide
        Jörg Schaible added a comment -

        Reopened, there are still issues.

        Show
        Jörg Schaible added a comment - Reopened, there are still issues.
        Jörg Schaible made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Hide
        John Conlon added a comment -

        Added test for registered JMX components that use non class keys.

        Show
        John Conlon added a comment - Added test for registered JMX components that use non class keys.
        John Conlon made changes -
        Attachment JMXVisitorTestCase.java [ 13469 ]
        Hide
        John Conlon added a comment -

        Added method to register MBeanInfo inplementations to non Class keyed components.

        Show
        John Conlon added a comment - Added method to register MBeanInfo inplementations to non Class keyed components.
        John Conlon made changes -
        Attachment JMXVisitor.java [ 13470 ]
        Hide
        Jörg Schaible added a comment -

        Done. Although after the refactoring, the registration code for components lives in RegisteredMBeanConstructingProvider.

        Show
        Jörg Schaible added a comment - Done. Although after the refactoring, the registration code for components lives in RegisteredMBeanConstructingProvider.
        Jörg Schaible made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: