JDK-8066633 : Fix deprecation warnings in java.rmi module
Type:Sub-task
Component:core-libs
Sub-Component:java.rmi
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2014-12-03
Updated:2015-06-04
Resolved:2014-12-12
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.
The deprecation warnings in the java.rmi module should be reviewed and possibly addressed via code changes.
Comments
RemoteStub is part of the static stubs mechanism which of course RMI must continue to support internally until they are removed. Thus the current warnings should remain suppressed.
DataInputStream.readLine() is used by the HTTP proxying code, which is earmarked for removal by JDK-8066750, thus rewriting it isn't worth it.
The use of RMISecurityManager should be replaced with an ordinary SecurityManager.
06-12-2014
At time of writing, the deprecation warnings in the java.rmi module are:
dev/jdk/src/java.rmi/share/classes/sun/rmi/server/MarshalOutputStream.java:80: warning: [deprecation] RemoteStub in java.rmi.server has been deprecated
dev/jdk/src/java.rmi/share/classes/java/rmi/server/RemoteObject.java:98: warning: [deprecation] RemoteStub in java.rmi.server has been deprecated
dev/jdk/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java:344: warning: [deprecation] RMISecurityManager in java.rmi has been deprecated
dev/jdk/src/java.rmi/share/classes/sun/rmi/transport/proxy/HttpInputStream.java:62: warning: [deprecation] readLine() in DataInputStream has been deprecated