< prev index next >
test/java/rmi/server/Unreferenced/unreferencedContext/UnreferencedContext.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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.
@@ -120,11 +120,11 @@
intendedContext);
UnicastRemoteObject.exportObject(obj);
System.err.println("exported remote object");
- Registry registry1 = TestLibrary.createRegistryOnUnusedPort();
+ Registry registry1 = TestLibrary.createRegistryOnEphemeralPort();
int port = TestLibrary.getRegistryPort(registry1);
System.err.println("created registry");
Registry registry = LocateRegistry.getRegistry("", port);
registry.bind(BINDING, obj);
< prev index next >