ModelMBeanInfoSupport.setDescriptor(null, "anything") should get exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: core-svc
    • b38
    • generic
    • generic

      The spec for ModelMBeanInfo.setDescriptor says that if the descriptor type parameter is null, then a RuntimeOperationsException wrapping an IllegalArgumentException should be thrown. But in fact the method returns without doing anything in this case. A comment says that the exception should be thrown and it looks as if the fact that it is not is just an oversight.
      ###@###.### 2003-12-12

            Assignee:
            Eamonn McManus
            Reporter:
            Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: