This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: PR 16591 (DISABLE_MAIN_ARGS)


This patch fixes PR 16591, reported by Peter Blemel. We need to avoid calling _Jv_SetArgs if DISABLE_MAIN_ARGS is set. I'm checking this in.

Bryce

2004-07-20 Bryce McKinlay <mckinlay@redhat.com>

   PR libgcj/16591
   * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
   is defined.

--- prims.cc    20 Jul 2004 15:36:56 -0000      1.93
+++ prims.cc    20 Jul 2004 17:55:12 -0000
@@ -1033,7 +1033,9 @@
_Jv_RunMain (jclass klass, const char *name, int argc, const char **argv,
            bool is_jar)
{
+#ifndef DISABLE_MAIN_ARGS
  _Jv_SetArgs (argc, argv);
+#endif

java::lang::Runtime *runtime = NULL;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]