test/com/sun/jdi/BadHandshakeTest.java

Print this page
rev 9529 : 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 6306165 6432567
  26  * @summary Check that a bad handshake doesn't cause a debuggee to abort
  27  * @library /lib/testlibrary
  28  *
  29  * @build VMConnection BadHandshakeTest Exit0
  30  * @run main BadHandshakeTest
  31  *
  32  */
  33 import java.net.Socket;
  34 import java.net.InetAddress;
  35 import com.sun.jdi.Bootstrap;
  36 import com.sun.jdi.VirtualMachine;
  37 import com.sun.jdi.event.*;
  38 import com.sun.jdi.connect.Connector;
  39 import com.sun.jdi.connect.AttachingConnector;
  40 import java.util.Map;
  41 import java.util.List;
  42 import java.util.Iterator;
  43 import java.util.concurrent.TimeUnit;
  44 import java.util.concurrent.atomic.AtomicBoolean;
  45 
  46 import jdk.testlibrary.Utils;
  47 import jdk.testlibrary.ProcessTools;
  48 
  49 public class BadHandshakeTest {




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 6306165 6432567
  26  * @summary Check that a bad handshake doesn't cause a debuggee to abort
  27  * @library /lib/testlibrary
  28  *
  29  * @build jdk.testlibrary.* VMConnection BadHandshakeTest Exit0
  30  * @run main BadHandshakeTest
  31  *
  32  */
  33 import java.net.Socket;
  34 import java.net.InetAddress;
  35 import com.sun.jdi.Bootstrap;
  36 import com.sun.jdi.VirtualMachine;
  37 import com.sun.jdi.event.*;
  38 import com.sun.jdi.connect.Connector;
  39 import com.sun.jdi.connect.AttachingConnector;
  40 import java.util.Map;
  41 import java.util.List;
  42 import java.util.Iterator;
  43 import java.util.concurrent.TimeUnit;
  44 import java.util.concurrent.atomic.AtomicBoolean;
  45 
  46 import jdk.testlibrary.Utils;
  47 import jdk.testlibrary.ProcessTools;
  48 
  49 public class BadHandshakeTest {