harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r472533 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
Date Wed, 08 Nov 2006 16:27:35 GMT
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;
     }
 



Mime
View raw message