< prev index next >

test/java/rmi/server/RemoteObject/verifyRemoteEquals/VerifyRemoteEquals.java

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 /*
  25  * @test
  26  * @bug 4251010
  27  * @summary equals does not works on stub objects created with
  28  *           custom socket AndFactory
  29  * @author Laird Dornin
  30  *
  31  * @library ../../../testlibrary




  32  * @build TestLibrary
  33  * @run main/othervm/timeout=40 VerifyRemoteEquals
  34  */
  35 
  36 import java.io.*;
  37 import java.net.*;
  38 import java.rmi.*;
  39 import java.rmi.server.*;
  40 
  41 /**
  42  * Test ensures that a stub that has never been serialized and one
  43  * that has can be .equals().  Test also ensures that stubs with
  44  * custom socket factories can be .equals() with equivalent stubs.
  45  */
  46 public class VerifyRemoteEquals {
  47 
  48     /**
  49      * Remote interface.
  50      */
  51     public interface Test extends Remote {




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 /*
  25  * @test
  26  * @bug 4251010
  27  * @summary equals does not works on stub objects created with
  28  *           custom socket AndFactory
  29  * @author Laird Dornin
  30  *
  31  * @library ../../../testlibrary
  32  * @modules java.rmi/sun.rmi.registry
  33  *          java.rmi/sun.rmi.server
  34  *          java.rmi/sun.rmi.transport
  35  *          java.rmi/sun.rmi.transport.tcp
  36  * @build TestLibrary
  37  * @run main/othervm/timeout=40 VerifyRemoteEquals
  38  */
  39 
  40 import java.io.*;
  41 import java.net.*;
  42 import java.rmi.*;
  43 import java.rmi.server.*;
  44 
  45 /**
  46  * Test ensures that a stub that has never been serialized and one
  47  * that has can be .equals().  Test also ensures that stubs with
  48  * custom socket factories can be .equals() with equivalent stubs.
  49  */
  50 public class VerifyRemoteEquals {
  51 
  52     /**
  53      * Remote interface.
  54      */
  55     public interface Test extends Remote {


< prev index next >