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

Correct links in javadoc of OperatingSystemMXBean

    XMLWordPrintable

Details

    • b27
    • 14
    • b19

    Backports

      Description

        The com.sun.management.OperatingSystemMXBean.getTotalPhysicalMemorySize() method description says the following:
            /**
             * Returns the total amount of physical memory in bytes.
             *
             * @deprecated Use {@link #getMemorySize()} instead of
             * this historically named method.
             *
             * @implSpec This implementation must return the same value
             * as {@link #getMemorySize()}.
             *
             * @return the total amount of physical memory in bytes.
             **/

        However, there is no such method getMemorySize(). The proper method name is getTotalMemorySize(). The method description needs to be changed to correct this.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: