< prev index next >
test/com/sun/tools/attach/StartManagementAgent.java
Print this page
@ rev 13683 : 8195088: [TEST_BUG] StartManagementAgent got unexpected exception
| Reviewed-by: sgehwolf
~
@@ -91,11 +91,11 @@
try {
vm.startManagementAgent(p);
} catch(AttachOperationFailedException ex) {
// We expect parsing of "apa" above to fail, but if the file path
// can't be read we get a different exception message
- if (!ex.getMessage().contains("Invalid com.sun.management.jmxremote.port number")) {
+ if (!ex.getMessage().contains("NumberFormatException: For input string: \"apa\"")) {
throw ex;
}
}
}
< prev index next >