19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4472769 26 * @summary Stubs and skeletons used to implement the RMI registry 27 * implementation and the bootstrap stubs must always follow certain 28 * "well known" protocols so that they otherwise need not be in sync-- 29 * in other words, a registry stub from any arbitrary J2SE vendor and 30 * version must be able to communicate with a registry skeleton from 31 * any other arbitrary J2SE vendor and version. In addition to 32 * (unfortunately) using the old "-v1.1" stub/skeleton invocation 33 * protocol, with its unevolvable operation number scheme, they must 34 * always use the same value for the -v1.1 stub/skeleton 35 * "interface hash": 4905912898345647071L. 36 * 37 * @author Peter Jones 38 * @library ../../testlibrary 39 * @build TestLibrary ReferenceRegistryStub 40 * @run main/othervm InterfaceHash 41 * @key intermittent 42 */ 43 44 import java.lang.reflect.Constructor; 45 import java.lang.reflect.Method; 46 import java.rmi.Remote; 47 import java.rmi.registry.Registry; 48 import java.rmi.registry.LocateRegistry; 49 import java.rmi.server.ObjID; 50 import java.rmi.server.Operation; 51 import java.rmi.server.RemoteCall; 52 import java.rmi.server.RemoteObject; 53 import java.rmi.server.RemoteRef; 54 import java.util.Arrays; 55 56 import sun.rmi.server.UnicastRef; 57 import sun.rmi.transport.LiveRef; 58 import sun.rmi.transport.tcp.TCPEndpoint; | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4472769 26 * @summary Stubs and skeletons used to implement the RMI registry 27 * implementation and the bootstrap stubs must always follow certain 28 * "well known" protocols so that they otherwise need not be in sync-- 29 * in other words, a registry stub from any arbitrary J2SE vendor and 30 * version must be able to communicate with a registry skeleton from 31 * any other arbitrary J2SE vendor and version. In addition to 32 * (unfortunately) using the old "-v1.1" stub/skeleton invocation 33 * protocol, with its unevolvable operation number scheme, they must 34 * always use the same value for the -v1.1 stub/skeleton 35 * "interface hash": 4905912898345647071L. 36 * 37 * @author Peter Jones 38 * @library ../../testlibrary 39 * @modules java.rmi/sun.rmi.registry 40 * java.rmi/sun.rmi.server 41 * java.rmi/sun.rmi.transport 42 * java.rmi/sun.rmi.transport.tcp 43 * @build TestLibrary ReferenceRegistryStub 44 * @run main/othervm InterfaceHash 45 * @key intermittent 46 */ 47 48 import java.lang.reflect.Constructor; 49 import java.lang.reflect.Method; 50 import java.rmi.Remote; 51 import java.rmi.registry.Registry; 52 import java.rmi.registry.LocateRegistry; 53 import java.rmi.server.ObjID; 54 import java.rmi.server.Operation; 55 import java.rmi.server.RemoteCall; 56 import java.rmi.server.RemoteObject; 57 import java.rmi.server.RemoteRef; 58 import java.util.Arrays; 59 60 import sun.rmi.server.UnicastRef; 61 import sun.rmi.transport.LiveRef; 62 import sun.rmi.transport.tcp.TCPEndpoint; |