LocalRMIServerSocketFactoryTest.java revision 716
383N/A * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. 358N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 358N/A * This code is free software; you can redistribute it and/or modify it 358N/A * under the terms of the GNU General Public License version 2 only, as 358N/A * published by the Free Software Foundation. 358N/A * This code is distributed in the hope that it will be useful, but WITHOUT 358N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 358N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 358N/A * version 2 for more details (a copy is included in the LICENSE file that 358N/A * accompanied this code). 358N/A * You should have received a copy of the GNU General Public License version 358N/A * 2 along with this work; if not, write to the Free Software Foundation, 358N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 358N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 358N/A * CA 95054 USA or visit www.sun.com if you need additional information or * @summary Connect to a server socket returned by the LocalRMIServerSocketFactory. * @run main LocalRMIServerSocketFactoryTest super(
"SUCCESS: No exception was thrown");
// Wait for the server to set the error field. // case of 6674166: this is very unlikely to happen, even if // both 6674166 and 6774170 aren't fixed. If it happens // however, it might indicate that neither defects are fixed. "Congratulations! it seems you have triggered 6674166. " +
"Neither 6674166 nor 6774170 seem to be fixed: " + x, x);
"Unexpected IOException. Maybe you triggered 6674166? " +
"This is a new kind of unexpected exception " +
// wait for the client to get the exception. checkError(
"new Socket(InetAddress.getByName(null), port)");