-
Bug
-
Resolution: Fixed
-
P4
-
14, 15
-
b27
-
b19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8242762 | 14.0.2 | Daniil Titov | P4 | Resolved | Fixed | b04 |
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.
/**
* 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.
- backported by
-
JDK-8242762 Correct links in javadoc of OperatingSystemMXBean
-
- Resolved
-
- csr for
-
JDK-8242431 Correct links in javadoc of OperatingSystemMXBean
-
- Closed
-
- relates to
-
JDK-8226575 OperatingSystemMXBean should be made container aware
-
- Resolved
-