This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: fix gcjh goof
- From: Tom Tromey <tromey at redhat dot com>
- To: GCJ-patches <java-patches at gcc dot gnu dot org>
- Cc: GNU Classpath Patches <classpath-patches at gnu dot org>
- Date: 16 Mar 2007 22:45:12 -0600
- Subject: Patch: FYI: fix gcjh goof
- Reply-to: tromey at redhat dot com
I'm checking this in everywhere.
Tom F. pointed out a bug I introduced with my last gcjh change.
Sorry about that. Here's the fix.
Tom
Index: classpath/ChangeLog
from Tom Tromey <tromey@redhat.com>
* tools/gnu/classpath/tools/javah/Main.java (run): Use class'
name in File case.
Index: classpath/tools/gnu/classpath/tools/javah/Main.java
===================================================================
--- classpath/tools/gnu/classpath/tools/javah/Main.java (revision 123000)
+++ classpath/tools/gnu/classpath/tools/javah/Main.java (working copy)
@@ -392,8 +392,8 @@
// 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
{