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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: