From b836d87aac126ff9b84dc0e5d3f5c4b0d6b42ba6 Mon Sep 17 00:00:00 2001 From: sgehwolf Date: Fri, 13 Dec 2019 08:11:30 +0000 Subject: [PATCH] 8195088: [TEST_BUG] StartManagementAgent got unexpected exception Reviewed-by: sspitsyn, andrew --- test/com/sun/tools/attach/StartManagementAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/com/sun/tools/attach/StartManagementAgent.java b/test/com/sun/tools/attach/StartManagementAgent.java index da8289558..cc3969084 100644 --- a/test/com/sun/tools/attach/StartManagementAgent.java +++ b/test/com/sun/tools/attach/StartManagementAgent.java @@ -93,7 +93,7 @@ public class StartManagementAgent { } 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; } } -- GitLab