This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: JNI header generation fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 27 Apr 2005 11:33:32 -0600
- Subject: [gcjx] Patch: FYI: JNI header generation fix
- Reply-to: tromey at redhat dot com
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]);