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

Logic to default fields in ModelMBean descriptor adds at most one default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-svc
    • b38
    • generic
    • generic

      ModelMBeanInfoSupport.isValid() contains code that adds a default value
      for various fields in the Descriptor for the ModelMBean itself. However,
      the logic basically says:
         if (displayName missing)
            set default displayName
         else if (persistPolicy missing)
            set default persistPolicy
         else if (log missing)
            ...

      Obviously the "else"s should not be there. Each one of these values that is missing should be added.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: