Patch: FYI: fix gcjh goof

Tom Tromey tromey@redhat.com
Sat Mar 17 04:59:00 GMT 2007


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
           {



More information about the Java-patches mailing list