JDK-8066635 : Fix deprecation warnings in java.management module
  • Type: Sub-task
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-12-03
  • Updated: 2017-07-20
  • Resolved: 2016-08-31
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 9
9 b137Fixed
Related Reports
Relates :  
Relates :  
Comments
The deserialize methods implements MBeanServerInterceptor interface. Through these methods don't have any logic in it, we still cannot remove. The only thing we can do right now is to change annotation from '@SuppressWarnings("deprecation")' to '@Deprecated'
17-08-2016

Joe, The warnings have already been addressed with required code changes. Unfortunately, the person who made those changes, never updated this bug. As part of triage , we found this, and hence closed it. Do you still want to keep this issue open.?
17-08-2016

This bug is *not* a duplicate of JDK-8066634. In JDK-8066634, the warnings are just suppressed using @SuppressWarnings("deprecation"). A fix would be to change the code to use constructors that were not deprecated. If the svc team is not going to make such a change, then this bug could be closed as "will not fix" to indicated that disposition.
17-08-2016

At the time of writing, the deprecation warnings in java.management are: dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1720: warning: [deprecation] deserialize(String,ObjectName,byte[]) in MBeanServerInterceptor has been deprecated dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1715: warning: [deprecation] deserialize(String,byte[]) in MBeanServerInterceptor has been deprecated dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1710: warning: [deprecation] deserialize(ObjectName,byte[]) in MBeanServerInterceptor has been deprecated dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1720: warning: [deprecation] deserialize(String,ObjectName,byte[]) in MBeanServer has been deprecated dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1715: warning: [deprecation] deserialize(String,byte[]) in MBeanServer has been deprecated dev/jdk/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java:1710: warning: [deprecation] deserialize(ObjectName,byte[]) in MBeanServer has been deprecated
03-12-2014