OSDN Git Service

PR libgcj/30707:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 20:27:16 +0000 (20:27 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 20:27:16 +0000 (20:27 +0000)
* tools/gnu/classpath/tools/javah/JniIncludePrinter.java
(printClass): Always print a header.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121664 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/classpath/ChangeLog
libjava/classpath/tools/classes/gnu/classpath/tools/javah/JniIncludePrinter.class
libjava/classpath/tools/gnu/classpath/tools/javah/JniIncludePrinter.java

index 6cd3239..efc1512 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-06  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/30707:
+       * tools/gnu/classpath/tools/javah/JniIncludePrinter.java
+       (printClass): Always print a header.
+
 2007-02-05  Andrew Haley  <aph@redhat.com>
 
        PR cp-tools/30706
index 6c29cc3..a89e0d2 100644 (file)
Binary files a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/JniIncludePrinter.class and b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/JniIncludePrinter.class differ
index 5666d27..dc19af2 100644 (file)
@@ -1,5 +1,5 @@
 /* JniIncludePrinter.java - Generate a JNI header file
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 
  This file is part of GNU Classpath.
 
@@ -109,8 +109,6 @@ public class JniIncludePrinter
 
   public void printClass(ClassWrapper klass) throws IOException
   {
-    if (! klass.hasNativeMethod())
-      return;
     String xname = JniHelper.mangle(klass.name);
     JniPrintStream out 
       = (JniPrintStream) getPrintStream(klass.name.replace('/', '_') + ".h",