This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: fix gcjh goof


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
           {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]