You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2006/11/08 17:27:35 UTC

svn commit: r472533 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c

Author: odeakin
Date: Wed Nov  8 08:27:34 2006
New Revision: 472533

URL: http://svn.apache.org/viewvc?view=rev&rev=472533
Log:
Don't output "FAILED to invoke JVM" for cases where the VM exits with an uncaught exception.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c?view=diff&rev=472533&r1=472532&r2=472533
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c Wed Nov  8 08:27:34 2006
@@ -354,11 +354,17 @@
     }
 
   /* main launcher processing in this function */
-  if (invocation
+  rc = invocation
       (PORTLIB, argc, argv, handle, JNI_VERSION_1_4, JNI_TRUE, mainClass,
-       classArg, propertiesFileName, isStandaloneJar, vmdllsubdir))
+       classArg, propertiesFileName, isStandaloneJar, vmdllsubdir);
+  if (rc)
     {
-      hytty_printf (PORTLIB, "FAILED to invoke JVM.\n");
+	  /* Print an error message except in the case where an uncaught Exception 
+	     has terminated the VM */
+	  if (rc != 100)
+	  {
+		  hytty_printf (PORTLIB, "FAILED to invoke JVM.\n");
+	  }                                                     
       goto bail;
     }