8044398: Attach code should propagate errors in Diagnostic Commands as errors
authorsla
Fri, 30 May 2014 19:13:07 +0200
changeset 24833 c55a7c2888f6
parent 24832 26a834fb508d
child 24834 e996b2983c83
8044398: Attach code should propagate errors in Diagnostic Commands as errors Reviewed-by: dcubed, mgronlun
hotspot/src/share/vm/services/attachListener.cpp
--- a/hotspot/src/share/vm/services/attachListener.cpp	Fri May 30 07:20:51 2014 -0700
+++ b/hotspot/src/share/vm/services/attachListener.cpp	Fri May 30 19:13:07 2014 +0200
@@ -162,10 +162,7 @@
     java_lang_Throwable::print(PENDING_EXCEPTION, out);
     out->cr();
     CLEAR_PENDING_EXCEPTION;
-    // The exception has been printed on the output stream
-    // If the JVM returns JNI_ERR, the attachAPI throws a generic I/O
-    // exception and the content of the output stream is not processed.
-    // By returning JNI_OK, the exception will be displayed on the client side
+    return JNI_ERR;
   }
   return JNI_OK;
 }