summaryrefslogtreecommitdiffstats
path: root/libjava/classpath
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-17 05:00:07 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-17 05:00:07 +0000
commit2c9f7a46adf94991f2b8371c217c67d4316d9778 (patch)
tree8f67ed316ed7925e7a01f587f5f506841126a614 /libjava/classpath
parentf07deec711056ab8768ade5fb35f8e6607ca8ef9 (diff)
downloadppe42-gcc-2c9f7a46adf94991f2b8371c217c67d4316d9778.tar.gz
ppe42-gcc-2c9f7a46adf94991f2b8371c217c67d4316d9778.zip
* tools/gnu/classpath/tools/javah/Main.java (run): Use class'
name in File case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath')
-rw-r--r--libjava/classpath/ChangeLog5
-rw-r--r--libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.classbin10929 -> 10939 bytes
-rw-r--r--libjava/classpath/tools/gnu/classpath/tools/javah/Main.java4
3 files changed, 7 insertions, 2 deletions
diff --git a/libjava/classpath/ChangeLog b/libjava/classpath/ChangeLog
index 0f68f919452..120747cca6e 100644
--- a/libjava/classpath/ChangeLog
+++ b/libjava/classpath/ChangeLog
@@ -1,5 +1,10 @@
2007-03-16 Tom Tromey <tromey@redhat.com>
+ * tools/gnu/classpath/tools/javah/Main.java (run): Use class'
+ name in File case.
+
+2007-03-16 Tom Tromey <tromey@redhat.com>
+
* tools/gnu/classpath/tools/javah/JniStubPrinter.java
(printClass): Added filename argument.
* tools/gnu/classpath/tools/javah/JniIncludePrinter.java
diff --git a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class
index 66c37937fa3..56c7f488a24 100644
--- a/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class
+++ b/libjava/classpath/tools/classes/gnu/classpath/tools/javah/Main.class
Binary files differ
diff --git a/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java b/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java
index 250844d1d88..dfa04c4c9ef 100644
--- a/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java
+++ b/libjava/classpath/tools/gnu/classpath/tools/javah/Main.java
@@ -392,8 +392,8 @@ public class Main
// Load class from file.
if (verbose)
System.err.println("[reading file " + item + "]");
- filename = (File) item;
- klass = getClass(filename);
+ klass = getClass((File) item);
+ filename = new File(klass.name);
}
else
{
OpenPOWER on IntegriCloud