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

OpenMBeanOperationInfoSupport javadoc is contradictory about UNKNOWN impact

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      As of b63, the fix done in the OpenMBeanOperationInfoSupport javadoc for the 6320104 is not correct.
      The new javadoc for the 2 constructors contains:

      [...]
      impact - can be only one of ACTION, ACTION_INFO or INFO.
      [...]
      IllegalArgumentException - if name or description are null or empty string, or returnOpenType is null, or impact is not one of ACTION, ACTION_INFO, INFO, or UNKNOWN.
      [...]

      The first sentence continues to explicitely forbid UNKNOWN as a valid impact. Only the condition when IAE is thrown considers UNKNOWN as valid.
      The two sentences contradict each other.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jferaud Joel Feraud (Inactive)
                Reporter:
                yjoan Yves Joan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: