This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
_Jv_ThisExecutable
- From: Tom Tromey <tromey at redhat dot com>
- To: gcj mail list <java at gcc dot gnu dot org>
- Cc: Per Bothner <bothner at bothner dot com>
- Date: 02 Dec 2002 21:07:34 -0700
- Subject: _Jv_ThisExecutable
- Reply-to: tromey at redhat dot com
See PR 8685.
Right now a simple use of the CNI invocation API will cause a crash.
That's because _Jv_ThisExecutable(char*) isn't called by default.
One fix would be not to crash if `this executable' isn't set -- either
we could set it to a dummy value or we could just add conditions.
Another fix would be to add JvThisExecutable and require it to be
called.
Another would be to add a new argument to _Jv_CreateJavaVM.
Any preferences? Per, I thought you might prefer one approach over
another, since you wrote the CNI invocation API.
Tom