test/sun/rmi/transport/tcp/DeadCachedConnection.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2004, 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) 1998, 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.
*** 56,66 ****
import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class DeadCachedConnection {
! static public final int regport = 17340;
static public void main(String[] argv)
throws Exception {
// establish the registry (we hope)
System.err.println ("Starting registry on port " + regport);
--- 56,66 ----
import java.rmi.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class DeadCachedConnection {
! static public final int regport = TestLibrary.getUnusedRandomPort();
static public void main(String[] argv)
throws Exception {
// establish the registry (we hope)
System.err.println ("Starting registry on port " + regport);