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

postRegister() may sometime be called from within a synchronized block

XMLWordPrintable

    • b86
    • generic
    • generic

      The following code from DefaultMBeanServerInterceptor::internal_addObject() should
      be modified to take the postRegisterInvoke() out fo the synchronized block:

              synchronized(this) {
                  try {
                      repository.addMBean(object, logicalName);
                  }
                  catch (InstanceAlreadyExistsException e) {
                      if (object instanceof MBeanRegistration) {
                          postRegisterInvoke((MBeanRegistration) object, false, true);
                      }
                      throw e;
                  }
              }

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: