This is the mail archive of the java-patches@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] Enabling commented out code in java/util/AbstractSet.java


I'm going to check this patch in. Thanks to Bryce's work on gcj/285,
this code builds again. You want to make sure that you have your
compiler patched with this before installing this run-time patch or
updating your libgcj tree:

  http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00646.html

./A

2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * java/util/AbstractSet.java (equals): Re-installed original code.

Index: java/util/AbstractSet.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/AbstractSet.java,v
retrieving revision 1.1
diff -u -p -r1.1 AbstractSet.java
--- AbstractSet.java    2000/08/19 18:19:42     1.1
+++ AbstractSet.java    2000/10/23 19:42:44
@@ -52,10 +52,7 @@ public abstract class AbstractSet extend
     if (o == this) {
       return true;
     } else if (o instanceof Set && ((Set)o).size() == size()) {
-      throw new Error ("FIXME: compiler error - AbstractSet.equals");
-      /*  FIXME: this is the correct implementation, but a compiler
-         error prevents us from building it.
-         return containsAll((Collection)o);  */
+      return containsAll((Collection)o);
     } else {
       return false;
     }

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