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

RuntimeException from preRegister is not wrapped in MBeanRegistrationException

XMLWordPrintable

      If an MBean implements MBeanRegistration and throws a RuntimeException from its preRegister method, then reading the spec would lead one to expect that the RuntimeException will be wrapped in an MBeanRegistrationException. In fact that is not the case - it is wrapped in a RuntimeMBeanException. Errors are also wrapped in RuntimeErrorException. We can't change this behaviour for fear of breaking existing code, but we should specify it.

            sjiang Shanliang Jiang (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: