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

Two different default descriptor forms defined for ModelMBeanInfoSupport

XMLWordPrintable

    • b40
    • generic
    • generic
    • Verified

      Javadoc of ModelMBeanInfoSupport.getMBeanDescriptor() defines the field 'export=F' as part of the default descriptor.
      Extract:

      [...]
       The default descriptor is: name=mbeanName,descriptorType=mbean, displayName=this.getClassName(), persistPolicy=never,log=F,export=F,visibility=1 If the descriptor does not contain all these fields, they will be added with these default values.
      [...]


      But the constructor javadoc for that class defines a default descriptor where field 'export' is gone.
      Extract:

      [...]
      mbeandescriptor - descriptor to be used as the MBeanDescriptor containing MBean wide policy. If the descriptor is null, a default descriptor will be constructed. The default descriptor is: name=className, descriptorType=mbean, displayName=className, persistPolicy=never, log=F, visibility=1. If the descriptor does not contain all these fields, they will be added with these default values.
      [...]

      The current implementation does not enforce the use of field 'export'.

      ###@###.### 2005-04-08 15:34:13 GMT

            emcmanus Eamonn McManus
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: