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

Standard MBean subclassing NotificationBroadcasterSupport can still be immutable sometimes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-svc
    • None
    • b49
    • generic
    • generic

      Currently, a Standard MBean contains "immutableInfo=true" in its Descriptor only if it does not implement the NotificationBroadcaster interface. The reason is that a Standard MBean that does implement that interface can potentially return different arrays of MBeanNotificationInfo from the getNotificationInfo() method at different imes.

      However, we could recognize an important special case even when it does implement that interface, namely when it extends NotificationBroadcasterSupport and does not override the getNotificationInfo() method. This is likely to be frequent now that NotificationBroadcasterSupport has a constructor that takes an MBeanNotificationInfo[]. Usually subclasses will call this constructor and not override getNotificationInfo().
      ###@###.### 2005-07-12 15:19:17 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: