This is the mail archive of the java-discuss@sources.redhat.com 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]

Patch for overzealous compiler warning.


Hello.

Could someone apply this patch? It fixes a silly error
as described below. This warning message is causing
problems regression testing gcj.

thanks much
Mo DeJong
Red Hat Inc

2000-12-07  Mo DeJong  <mdejong@redhat.com>

        * jcf-io.c (find_class): Correct the logic
        that tests to see if a .java file is newer
        than its .class file. The compiler was
        incorrectly printing a warning when file 
        mod times were equal.

Index: jcf-io.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-io.c,v
retrieving revision 1.26
diff -u -r1.26 jcf-io.c
--- jcf-io.c    2000/11/07 22:50:06     1.26
+++ jcf-io.c    2000/12/08 08:30:20
@@ -394,7 +394,7 @@
      source file instead.
      There should be a flag to allow people have the class file picked
      up no matter what. FIXME. */
-  if (! java && ! class && java_buf.st_mtime >= class_buf.st_mtime)
+  if (! java && ! class && java_buf.st_mtime > class_buf.st_mtime)
     {
       char *stripped_class_name = xstrdup (classname);
       int i = strlen (stripped_class_name);



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