8218705: Test sun/tools/jcmd/TestJcmdDefaults.java fails on Linux
Reviewed-by: dholmes
--- 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