+2002-01-16 Tom Tromey <tromey@redhat.com>
+
+ More for PR java/5365:
+ * gjavah.c (print_stub_or_jni): Cause exception to be thrown by
+ default.
+ (process_file): Generate include for
+ java.lang.UnsupportedOperationExceptions.
+
2002-01-15 Andreas Jaeger <aj@suse.de>
* .cvsignore: Add man pages.
if (flag_jni)
fputs ("\n{\n (*env)->FatalError (\"", stream);
else
- fputs ("\n{\n JvFail (\"", stream);
+ fputs ("\n{\n throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 (\"", stream);
print_name_for_stub_or_jni (stream, jcf, name_index,
signature_index, is_init,
name_override,
flags);
- fputs (" not implemented\");\n}\n\n", stream);
+ fprintf (stream, " not implemented\")%s;\n}\n\n",
+ flag_jni ? "" : ")");
}
}
}
free (name);
if (! flag_jni)
- print_include (out, "gcj/cni", -1);
+ {
+ print_include (out, "gcj/cni", -1);
+ print_include (out, "java/lang/UnsupportedOperationException",
+ -1);
+ }
}
}