This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: gcjh fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Date: 15 Nov 2003 20:48:50 -0700
- Subject: Patch: FYI: gcjh fixlet
- Reply-to: tromey at redhat dot com
The stubs generated by gcjh never worked -- the generated call to
FatalError was missing a parameter. Fixed as appended.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.109
diff -u -r1.109 gjavah.c
--- gjavah.c 28 Jun 2003 00:42:31 -0000 1.109
+++ gjavah.c 16 Nov 2003 03:07:40 -0000
@@ -1597,7 +1597,7 @@
if (stubs)
{
if (flag_jni)
- fputs ("\n{\n (*env)->FatalError (\"", stream);
+ fputs ("\n{\n (*env)->FatalError (env, \"", stream);
else
fputs ("\n{\n throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 (\"", stream);
print_name_for_stub_or_jni (stream, jcf, name_index,