--- old/test/jdk/com/sun/tools/attach/StartManagementAgent.java 2017-11-20 16:43:16.732930347 +0900 +++ new/test/jdk/com/sun/tools/attach/StartManagementAgent.java 2017-11-20 16:43:16.503929818 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -99,7 +99,7 @@ } 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")) { throw ex; } ex.printStackTrace(System.err);