test/java/rmi/registry/interfaceHash/InterfaceHash.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 33,44 **** --- 33,46 ---- * protocol, with its unevolvable operation number scheme, they must * always use the same value for the -v1.1 stub/skeleton * "interface hash": 4905912898345647071L. * * @author Peter Jones + * @library ../../testlibrary * @build InterfaceHash * @build ReferenceRegistryStub + * @build TestLibrary * @run main/othervm InterfaceHash */ import java.lang.reflect.Constructor; import java.lang.reflect.Method;
*** 56,66 **** import sun.rmi.transport.LiveRef; import sun.rmi.transport.tcp.TCPEndpoint; public class InterfaceHash { ! private static final int PORT = 2020; private static final String NAME = "WMM"; public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4472769"); --- 58,68 ---- import sun.rmi.transport.LiveRef; import sun.rmi.transport.tcp.TCPEndpoint; public class InterfaceHash { ! private static final int PORT = TestLibrary.getUnusedRandomPort(); private static final String NAME = "WMM"; public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 4472769");