Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4980655

REGRESSION:ModelMBeanInfoSupport#getDescriptors(String) is broken

XMLWordPrintable

    • b38
    • x86
    • windows_2000


      ###@###.### 2004-01-20


      J2SE Version (please include all output from java -version flag):
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b32, mixed mode)

      Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2? Yes / No (pick one)
        No.

      Operating System Configuration Information (be specific):
        Windows 2000 SP4
        Linux Redhat 7.3

      Hardware Configuration Information (be specific):
        DUAL PIII 866 MHZ
        1GB Memory


      Bug Description:
        It looks like the current implementation of
        ModelMBeanInfoSupport#getDescriptors(String) is broken.
        Calling this method with the descriptorType MMB (=mbean) will
        always lead into a IllegalArgumentException. The cause of this
        bug is a possibly broken if/else if statement.

      Steps to Reproduce (be specific):
        Call ModelMBeanInfoSupport#getDescriptors(String) with type "mbean"
        or execute the provided testcase.(testcase.zip)


            emcmanus Eamonn McManus
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: