[gcjx] Patch: FYI: JNI header generation fix
Tom Tromey
tromey@redhat.com
Wed Apr 27 17:35:00 GMT 2005
I'm checking this in on the gcjx branch.
We only want to print the names of native methods when generating a
JNI header.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* header/jni.cc (generate): Only write native methods.
Index: header/jni.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/header/Attic/jni.cc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 jni.cc
--- header/jni.cc 14 Jan 2005 23:26:15 -0000 1.1.2.2
+++ header/jni.cc 27 Apr 2005 17:35:07 -0000
@@ -320,6 +320,8 @@
i != methods.end ();
++i)
{
+ if (((*i)->get_modifiers () & ACC_NATIVE) == 0)
+ continue;
std::string name = (*i)->get_name ();
if (name_map.find (name) != name_map.end ())
write_method (out, (*i).get (), cname, name_map[name]);
More information about the Java-patches
mailing list