没有存根的 RMI

RMI without stubs

鉴于以下注释:
(找到 here

Note: As of the J2SE 5.0 release, stub classes for remote objects no longer need to be pregenerated using the rmic stub compiler, unless the remote object needs to support clients running in pre-5.0 VMs. If your application needs to support such clients, you will need to generate stub classes for the remote objects used in the application and deploy those stub classes for clients to download. For details on how to generate stub classes, see the tools documentation for rmic [Solaris, Windows]. For details on how to deploy your application along with pregenerated stub classes, see the codebase tutorial.

我的问题很简单: 没有存根的 RMI 如何工作?

它使用 java.lang.reflect.Proxy. 动态生成它们 请参阅 java.rmi.server.UnicastRemoteObject.

的 Javadoc 的 class 序言