< prev index next >

test/java/rmi/Naming/LookupNameWithColon.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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.

@@ -43,11 +43,11 @@
         String[] names = {
             "fairly:simple", "somewhat:more/complicated",
             "multiple:colons:in:name"
         };
 
-        Registry reg = TestLibrary.createRegistryOnUnusedPort();
+        Registry reg = TestLibrary.createRegistryOnEphemeralPort();
         int port = TestLibrary.getRegistryPort(reg);
 
         for (int i = 0; i < names.length; i++) {
             reg.rebind(names[i], reg);
             Naming.lookup("rmi://localhost:" + port + "/" + names[i]);
< prev index next >