This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: JNI header generation fix


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]);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]