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

Correct links in javadoc of OperatingSystemMXBean

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 15
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      This is spec change only. Behavior change is made under JDK-8226575
    • Interface Kind:
      Java API
    • Scope:
      JDK

      Description

      Summary

      Update com.sun.management.OperatingSystemMXBean class to correct the links in the javadoc.

      Problem

      Current javadoc for method getTotalPhysicalMemorySize() uses links to non-existing method getMemorySize() instead of links to method getTotalMemorySize().

      Solution

      Update javadoc for method getTotalPhysicalMemorySize() to replace links to getMemorySize() method with links to method getTotalMemorySize().

      Specification

      Update com.sun.management.OperatingSystemMXBean class as below:

      @@ -110,11 +110,11 @@
          /**
           * Returns the total amount of physical memory in bytes.
           *
      -    * @deprecated Use {@link #getMemorySize()} instead of
      +    * @deprecated Use {@link #getTotalMemorySize()} instead of
           * this historically named method.
           *
           * @implSpec This implementation must return the same value
      -    * as {@link #getMemorySize()}.
      +    * as {@link #getTotalMemorySize()}.
           *
           * @return the total amount of physical memory in  bytes.
           */

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dtitov Daniil Titov
                Reporter:
                dtitov Daniil Titov
                Reviewed By:
                David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: