jcf-io.c (find_class): Correct the logic that tests to see if a .java file is newer...
authorMo DeJong <mdejong@redhat.com>
Sun, 10 Dec 2000 20:18:23 +0000 (20:18 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Sun, 10 Dec 2000 20:18:23 +0000 (12:18 -0800)
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.

(http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00530.html)

From-SVN: r38177

gcc/java/ChangeLog
gcc/java/jcf-io.c

index c5fcd7980d8651ed1d36326f5b5ccc232e97f796..d28b51372326ebdb67ad0898a8194536f293fc2a 100644 (file)
@@ -8,6 +8,12 @@
        * zipfile.h (ZipDirectory): Declare size, uncompressed_size,
        filestart and filename_length as int values.
 
+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.
+
 2000-12-07  Zack Weinberg  <zack@wolery.stanford.edu>
 
        * jvgenmain.c: Use ISPRINT not isascii.
index 03ea7d75acfc61e7e9b83149251dc4327349315b..71b893cb199905fc88cf820ed9f8f19a742dcbb7 100644 (file)
@@ -394,7 +394,7 @@ DEFUN(find_class, (classname, classname_length, jcf, source_ok),
      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);