A DESCRIPTION OF THE PROBLEM :
The RMI documentations says that since Java5 RMI no longer requires manual stub generation but it does not make it explicitly clear that this isn't always the case (you must use the correct method).
The Javadoc for exportObject(Remote) should clarify that it does not auto-generate stub files and if the user would like autogenerated stubs he should use exportObject(Remote, int) instead.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/javase/6/docs/api/java/rmi/server/UnicastRemoteObject.html#exportObject(java.rmi.Remote)
The RMI documentations says that since Java5 RMI no longer requires manual stub generation but it does not make it explicitly clear that this isn't always the case (you must use the correct method).
The Javadoc for exportObject(Remote) should clarify that it does not auto-generate stub files and if the user would like autogenerated stubs he should use exportObject(Remote, int) instead.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/javase/6/docs/api/java/rmi/server/UnicastRemoteObject.html#exportObject(java.rmi.Remote)
- duplicates
-
JDK-8023863 deprecate support for statically-generated stubs from RMI (JRMP)
-
- Resolved
-