If UnicastRemoteObject is extended without specifying a server socket factory, or if the exportObject() overload that lacks socket factories is called, then the remote object is exported to the wildcard address.
The javadocs for UnicastRemoteObject and RMISocketFactory should specify that the default is that the exported object listens on the wildcard address. This is irrespective of the java.rmi.server.hostname property.
The javadocs should also mention alternatives for restricting the socket. This can be accomplished by using a global RMI socket factory, by providing server and client socket factories, or by setting a policy that restricts connection acceptance only from specific hosts or networks. It's not clear to me that example code is necessary, as it can easily get overly complicated, although snippets might be reasonable. References to specific APIs or security policy permissions are probably sufficient.
It would probably also be a good idea for the RMISocketFactory class to describe the behavior of the default socket factory when creating server sockets, i.e. that it listens on the wildcard interface.
JDK-7076394 covers corresponding changes to RMI web documentation.