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

Correct links in javadoc of OperatingSystemMXBean

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 14-pool
    • core-svc
    • None
    • minimal
    • This is spec change only. Behavior change is made under JDK-8226575
    • Java API
    • JDK

      Original CSR: https://bugs.openjdk.java.net/browse/JDK-8242431.

      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.
           */

            dtitov Daniil Titov (Inactive)
            dtitov Daniil Titov (Inactive)
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: