JDK-8242430 : Correct links in javadoc of OperatingSystemMXBean
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-04-09
  • Updated: 2022-02-24
  • Resolved: 2020-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14 JDK 15
14.0.2Fixed 15 b19Fixed
Related Reports
CSR :  
Relates :  
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.  

Fix request (14u) Minimal implementation risk, patch applies cleanly. Minimal compatibility risk since it only corrects javadoc for method getTotalPhysicalMemorySize() in com.sun.management.OperatingSystemMXBean. JDK doc bundles need to be refreshed for 14.0.2 to ensure the fix is present in the online docs. CSR JDK-8242765 for JDK 14 is approved

URL: https://hg.openjdk.java.net/jdk/jdk/rev/eb85b2d3b217 User: dtitov Date: 2020-04-10 15:47:52 +0000