OSDN Git Service

2007-02-05 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 09:44:53 +0000 (09:44 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Feb 2007 09:44:53 +0000 (09:44 +0000)
        PR cp-tools/30706
        * tools/gnu/classpath/tools/javah/JniIncludePrinter.java:
        (printClass): Replace '/' in filenames with '_'.
        * tools/gnu/classpath/tools/javah/JniStubPrinter.java
        (printClass): Likewise.

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

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

index f82f64a..6cd3239 100644 (file)
@@ -1,3 +1,11 @@
+2007-02-05  Andrew Haley  <aph@redhat.com>
+
+       PR cp-tools/30706
+       * tools/gnu/classpath/tools/javah/JniIncludePrinter.java:
+       (printClass): Replace '/' in filenames with '_'.
+       * tools/gnu/classpath/tools/javah/JniStubPrinter.java
+       (printClass): Likewise.
+
 2007-02-05  Tom Tromey  <tromey@redhat.com>
 
        * java/net/Proxy.java (equals): Handle case where address==null.
index 5124ee9..6c29cc3 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 9f82c33..ad96207 100644 (file)
Binary files a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/JniStubPrinter.class and b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/JniStubPrinter.class differ
index f29bfc3..5666d27 100644 (file)
@@ -112,7 +112,9 @@ public class JniIncludePrinter
     if (! klass.hasNativeMethod())
       return;
     String xname = JniHelper.mangle(klass.name);
-    JniPrintStream out = (JniPrintStream) getPrintStream(klass.name + ".h", klass);
+    JniPrintStream out 
+      = (JniPrintStream) getPrintStream(klass.name.replace('/', '_') + ".h", 
+                                       klass);
     if (out == null)
       return;
     out.println();
index 4e78710..758ec21 100644 (file)
@@ -76,12 +76,14 @@ public class JniStubPrinter
     if (! klass.hasNativeMethod())
       return;
     String xname = JniHelper.mangle(klass.name);
-    JniPrintStream out = (JniPrintStream) getPrintStream(klass.name + ".c", klass);
+    JniPrintStream out 
+      = (JniPrintStream) getPrintStream(klass.name.replace('/', '_') + ".c", 
+                                       klass);
     if (out == null)
       return;
     out.println();
     out.print("#include <");
-    out.print(klass.name);
+    out.print(klass.name.replace('/', '_'));
     out.println(".h>");
 
     Iterator i = klass.methods.iterator();