-
CSR
-
Resolution: Unresolved
-
P4
-
None
-
source
-
low
-
Already deprecated since JDK 9.
-
Java API
-
SE
Summary
Deprecate for future removal, the class java.util.logging.LoggingMXBean its implementation java.util.logging.Logging, and the method java.util.logging.LogManager::getLoggingMXBean.
Problem
The interface java.lang.management.PlatformLoggingMXBean
is the correct management interface for logging. As per the java.util.LogManager documentation, it can be accessed using: ManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class).
java.util.logging.LoggingMXBean and java.util.logging.LogManager::getLoggingMXBean are deprecated since JDK-8139982 in JDK 9, but should be marked as deprecated for future removal.
The LoggingMXBean implementation java.util.logging.Logging should also be deprecated for removal.
Solution
Deprecate for future removal.
Specification
Github PR for reference:
- csr of
-
JDK-8336017 Deprecate java.util.logging.LoggingMXBean, its implementation, and accessor method for removal
-
- Open
-