8218705: Test sun/tools/jcmd/TestJcmdDefaults.java fails on Linux
authordtitov
Sat, 09 Feb 2019 10:07:13 -0800
changeset 53713 50c1b0a0f1e8
parent 53712 e7d81a810546
child 53714 c6cda58bd1aa
8218705: Test sun/tools/jcmd/TestJcmdDefaults.java fails on Linux Reviewed-by: dholmes
src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java
--- a/src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java	Fri Feb 08 20:51:55 2019 -0500
+++ b/src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java	Sat Feb 09 10:07:13 2019 -0800
@@ -85,9 +85,6 @@
         ProcessHelper helper = ProcessHelper.platformProcessHelper();
         if (helper != null) {
             mainClass = helper.getMainClass(vmd.id());
-            if (mainClass == null) {
-                return false;
-            }
         }
 
         // If the main class name is still unset then retrieve it with the attach mechanism