8219002: Some comments and error messages refer to VMDisconnectException

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Gary Adams 2019-02-15 05:32:36 -05:00
parent 0e29b78bd1
commit 8c4106ff56
5 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2019, 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
@ -192,11 +192,11 @@ public class invokemethod008 {
try {
retValue = testedClass.invokeMethod(thread, method, params, 0);
if ( ((PrimitiveValue )retValue).intValue() == Consts.TEST_FAILED ) {
complain("VMDisconnectException is not thrown");
complain("VMDisconnectedException is not thrown");
exitStatus = Consts.TEST_FAILED;
}
} catch(VMDisconnectedException e) {
display("!!!expected VMDisconnectException");
display("!!!expected VMDisconnectedException");
notifyVMDisconnect();
} catch(Exception e) {
complain("Unexpected " + e);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2019, 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
@ -203,11 +203,11 @@ public class newinstance008 {
try {
retValue = testedClass.newInstance(thread, method, params, 0);
if ( ((PrimitiveValue )retValue).intValue() == Consts.TEST_FAILED ) {
complain("VMDisconnectException is not thrown");
complain("VMDisconnectedException is not thrown");
exitStatus = Consts.TEST_FAILED;
}
} catch(VMDisconnectedException e) {
display("!!!expected VMDisconnectException");
display("!!!expected VMDisconnectedException");
notifyVMDisconnect();
} catch(Exception e) {
complain("Unexpected " + e);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2019, 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
@ -343,7 +343,7 @@ public class popframes004 {
{ // to get mainThread suspended; otherwise its end results in
// no suspention for breakpointRequest2 (bug or not?), end of test,
// and VMDisconnectException
// and VMDisconnectedException
thread2Ref.suspend();
log2("......eventSet.resume();");
eventSet.resume();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2019, 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
@ -346,7 +346,7 @@ public class popframes005 {
{ // to get mainThread suspended; otherwise its end results in
// no suspention for breakpointRequest2 (bug or not?), end of test,
// and VMDisconnectException
// and VMDisconnectedException
thread2Ref.suspend();
log2("......eventSet.resume();");
eventSet.resume();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2019, 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
@ -79,7 +79,7 @@ import com.sun.jdi.request.*;
* The debugger :
* clears interruption status, <BR>
* invokes vm.dispose() that results in <BR>
* VMDisconnectException in the thread2 <BR>
* VMDisconnectedException in the thread2 <BR>
* which has been suspended after invoking "runt2" <BR>
* but after exception it is resumed and sends interruption<BR>
* to the main thread; <BR>