< prev index next >

test/java/rmi/registry/emptyName/EmptyName.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 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. --- 1,7 ---- /* ! * Copyright (c) 2000, 2016, 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.
*** 36,46 **** import java.rmi.registry.Registry; import java.rmi.server.RemoteObject; public class EmptyName { public static void main(String[] args) throws Exception { ! Registry impl = TestLibrary.createRegistryOnUnusedPort(); Registry stub = (Registry) RemoteObject.toStub(impl); stub.bind("", stub); stub.lookup(""); stub.rebind("", stub); stub.lookup(""); --- 36,46 ---- import java.rmi.registry.Registry; import java.rmi.server.RemoteObject; public class EmptyName { public static void main(String[] args) throws Exception { ! Registry impl = TestLibrary.createRegistryOnEphemeralPort(); Registry stub = (Registry) RemoteObject.toStub(impl); stub.bind("", stub); stub.lookup(""); stub.rebind("", stub); stub.lookup("");
< prev index next >